Maniphest T61800

Addons: python error when adding some armature in "disabled in viewport" collections
Confirmed, NormalBUG

Assigned To
None
Authored By
Julien DUROURE (julien)
Feb 21 2019, 12:48 PM
Tags
  • BF Blender
  • Add-ons (Community)
Subscribers
Campbell Barton (campbellbarton)
Casey (BagelCo)
Julien DUROURE (julien)
Philipp Oeser (lichtwerk)
Sebastian Parborg (zeddb)

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

Event Timeline

Julien DUROURE (julien) created this task.Feb 21 2019, 12:48 PM
Sebastian Parborg (zeddb) assigned this task to Campbell Barton (campbellbarton).Feb 25 2019, 3:19 PM
Sebastian Parborg (zeddb) lowered the priority of this task from 90 to 50.
Sebastian Parborg (zeddb) added subscribers: Campbell Barton (campbellbarton), Sebastian Parborg (zeddb).

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.

Brecht Van Lommel (brecht) added a subscriber: Casey (BagelCo).
Philipp Oeser (lichtwerk) added a subscriber: Philipp Oeser (lichtwerk).Jul 10 2019, 10:25 AM

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

Dalai Felinto (dfelinto) removed Campbell Barton (campbellbarton) as the assignee of this task.Dec 23 2019, 4:35 PM
Dalai Felinto (dfelinto) added a project: Tracker Curfew.
Philipp Oeser (lichtwerk) changed the subtype of this task from "Report" to "Bug".Feb 6 2020, 3:41 PM
Philipp Oeser (lichtwerk) removed a project: Tracker Curfew.

Reconfirming, still an issue...

Philipp Oeser (lichtwerk) renamed this task 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.Feb 6 2020, 4:47 PM