Page MenuHome

Addons: python exerpt when adding some armature in "disabled in viewport" collections
Open, Confirmed, MediumPublic

Description

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

Details

Type
Bug

Event Timeline

Sebastian Parborg (zeddb) lowered the priority of this task from Needs Triage by Developer to Confirmed, Medium.

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'

@Campbell Barton (campbellbarton) feel free to reassign if this is not for you.

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...