Addon: Copy attributes. Copy weights operator returns error #87671

Closed
opened 2021-04-21 03:23:52 +02:00 by Vyacheslav Kobozev · 8 comments

System Information
Operating system: Windows-8.1-6.3.9600-SP0 64 Bits
Graphics card: GeForce GTX 660 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 461.40

Blender Version
Broken: version: 2.92.0, branch: master, commit date: 2021-02-24 16:25, hash: blender/blender@02948a2cab
Addon version 0.4.9

{F10030695 size=full}

Python: Traceback (most recent call last):
  File "D:\Progs\Graphics\3d\Blender-2.93.0\2.93\scripts\addons\space_view3d_copy_attributes.py", line 60, in invoke_func
    loopfunc(self, context, func)
  File "D:\Progs\Graphics\3d\Blender-2.93.0\2.93\scripts\addons\space_view3d_copy_attributes.py", line 301, in obLoopExec
    msg = funk(obj, active, context)
  File "D:\Progs\Graphics\3d\Blender-2.93.0\2.93\scripts\addons\space_view3d_copy_attributes.py", line 442, in obWei
    if len(me_source.vertices) != len(me_target.vertices):
AttributeError: 'Armature' object has no attribute 'vertices'

location: <unknown location>:-1
**System Information** Operating system: Windows-8.1-6.3.9600-SP0 64 Bits Graphics card: GeForce GTX 660 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 461.40 **Blender Version** Broken: version: 2.92.0, branch: master, commit date: 2021-02-24 16:25, hash: `blender/blender@02948a2cab` Addon version 0.4.9 {[F10030695](https://archive.blender.org/developer/F10030695/изображение.png) size=full} ``` Python: Traceback (most recent call last): File "D:\Progs\Graphics\3d\Blender-2.93.0\2.93\scripts\addons\space_view3d_copy_attributes.py", line 60, in invoke_func loopfunc(self, context, func) File "D:\Progs\Graphics\3d\Blender-2.93.0\2.93\scripts\addons\space_view3d_copy_attributes.py", line 301, in obLoopExec msg = funk(obj, active, context) File "D:\Progs\Graphics\3d\Blender-2.93.0\2.93\scripts\addons\space_view3d_copy_attributes.py", line 442, in obWei if len(me_source.vertices) != len(me_target.vertices): AttributeError: 'Armature' object has no attribute 'vertices' location: <unknown location>:-1 ```

Added subscriber: @Vyach

Added subscriber: @Vyach
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

Looks like you are trying to copy weights to an armature / have an armature in your selection?
This of course wont work (otoh it should not error out in this case either)

Looks like you are trying to copy weights to an armature / have an armature in your selection? This of course wont work (otoh it should not error out in this case either)
Philipp Oeser self-assigned this 2021-04-21 14:31:54 +02:00
Member

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'
Member

Will fix / spit out a warning in that case.

Will fix / spit out a warning in that case.

This issue was referenced by 452996ae95

This issue was referenced by 452996ae951478853af3c1bcac3e0e1a26a6cab4

@lichtwerk yes, armature was selected.
I thought, function do copy and I can paste weights to another group on the same mesh (and then invert for example).
Naming is confusing.
Copy — it is making copy (into scene or buffer).
Copy to — it is transfering to similar structure.

btw is there an ability to copy weights to buffer and paste em to another vertex group?

@lichtwerk yes, armature was selected. I thought, function do copy and I can paste weights to another group on the same mesh (and then invert for example). Naming is confusing. Copy — it is making copy (into scene or buffer). Copy *to* — it is transfering to similar structure. btw is there an ability to copy weights to buffer and paste em to another vertex group?
Member

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Sign in to join this conversation.
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#87671
No description provided.