Addons: python error when adding some armature in "disabled in viewport" collections #61800

Closed
opened 2019-02-21 12:48:09 +01:00 by Julien Duroure · 9 comments
Member

System Information
Operating system: Mint19
Graphics card: Nvidia 860M

Blender Version
Broken: 2.80 build of feb. 21rst

Short description of error
Addons: python exerpt when adding some armature in "disabled in viewport" collections

Exact steps for others to reproduce the error

  • from default file, delete all files
  • make collection "Collection" disabled in viewport
  • Try to add Dolly camera rig (from addon Camera Rigs) or metarig (from rigify)

Seems this happen for every addon that will add some armature is active collection, if the collection is disabled in viewport.
Currently, found it in :

  • Camera rigs addon
  • Rigify

But there is maybe more

**System Information** Operating system: Mint19 Graphics card: Nvidia 860M **Blender Version** Broken: 2.80 build of feb. 21rst **Short description of error** Addons: python exerpt when adding some armature in "disabled in viewport" collections **Exact steps for others to reproduce the error** * from default file, delete all files * make collection "Collection" disabled in viewport * Try to add Dolly camera rig (from addon Camera Rigs) or metarig (from rigify) Seems this happen for every addon that will add some armature is active collection, if the collection is disabled in viewport. Currently, found it in : * Camera rigs addon * Rigify But there is maybe more
Author
Member

Added subscriber: @JulienDuroure

Added subscriber: @JulienDuroure

blender/blender#63060 was marked as duplicate of this issue

blender/blender#63060 was marked as duplicate of this issue

Added subscribers: @ideasman42, @ZedDB

Added subscribers: @ideasman42, @ZedDB
Campbell Barton was assigned by Sebastian Parborg 2019-02-25 15:19:23 +01:00

I can confirm that I get the following error with Rigify:

Traceback (most recent call last):
  File "/home/zed/programmering/blender_master/blender/build/bin/2.80/scripts/addons/rigify/metarig_menu.py", line 88, in execute
    obj.name = "metarig"
AttributeError: 'NoneType' object has no attribute 'name'

@ideasman42 feel free to reassign if this is not for you.

I can confirm that I get the following error with Rigify: ``` Traceback (most recent call last): File "/home/zed/programmering/blender_master/blender/build/bin/2.80/scripts/addons/rigify/metarig_menu.py", line 88, in execute obj.name = "metarig" AttributeError: 'NoneType' object has no attribute 'name' ``` @ideasman42 feel free to reassign if this is not for you.

Added subscriber: @Casey-3

Added subscriber: @Casey-3
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

if stuff is added to a hidden collection (e.g. by bpy.ops.object.armature_add) it wont be the context.active_object then, needs a better check to actually get the result of bpy.ops.object.armature_add...

if stuff is added to a hidden collection (e.g. by `bpy.ops.object.armature_add`) it wont be the `context.active_object` then, needs a better check to actually get the result of `bpy.ops.object.armature_add`...
Campbell Barton was unassigned by Dalai Felinto 2019-12-23 16:35:05 +01:00
Member

Reconfirming, still an issue...

Reconfirming, still an issue...
Philipp Oeser changed title from Addons: python exerpt when adding some armature in "disabled in viewport" collections to Addons: python error when adding some armature in "disabled in viewport" collections 2020-02-06 16:47:01 +01:00

Both rigify & camera rigs now work with a disabled collection,likely resolved by blender/blender@c10ad8e9ea, closing.

Both rigify & camera rigs now work with a disabled collection,likely resolved by blender/blender@c10ad8e9eabea8a10d35efea3860cc345977e4f9, closing.
Blender Bot added
Status
Archived
and removed
Status
Confirmed
labels 2024-03-19 09:44:04 +01:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
6 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#61800
No description provided.