Saved blend scene with meta-rig, can not generate rigi-fy (not defined error) any more.

Issue #180 closed
engetudouiti created an issue

Once I generate meta-rig from Daz importer add on button, “Create meta rig”, I can customize as I need. But if I save the scene to keep current meta-rig, and load the scene with meta-rig (and default rig , meshes), plug in seems set free some variables which may be used to generate rigi-fy.

Blender default rigi-fy can generate , (but can not offer rig which merge daz bones) but plug in function, bpy.ops.daz.rigi_fy.meta show this error.

load base figure merge, rigs, and import morphs etc.

  1. generate meta-rig (Finish section), then customize option, or add new bone , change layer etc.
  2. save the scene. quit blender.
  3. load the scene, try generate rigi-fy, with select metarig (and set default rig visible)

Error: Traceback (most recent call last):
File "C:\Users\TAKE\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\import_daz\error.py", line 247, in execute
self.run(context)
File "C:\Users\TAKE\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\import_daz\rigify.py", line 1141, in run
self.rigifyMeta(context, False)
File "C:\Users\TAKE\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\import_daz\rigify.py", line 793, in rigifyMeta
rigifySkel, spineBones, dazSkel = self.setupDazSkeleton(meta)
File "C:\Users\TAKE\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\import_daz\rigify.py", line 367, in setupDazSkeleton
rigifySkel = RigifySkeleton
NameError: name 'RigifySkeleton' is not defined

If I did not quit blender, add on can generate rigi-fy, so I suppose,, assgin RigifySkelton seems lost when close scene. (maybe context? )

Though It is not heavy problem,, but ideally I hope to save scene, with temp meta-rig,, to customize and try easy.

(eg,, we can add dummy meta-rig bone, to rigi-fy show Rig Layer panell for DAZ facial , or added cloth bones)

Comments (2)

  1. engetudouiti reporter

    Ah OK now I understand, why it not work.

    I need to keep all gloval variables generated when “generate meta-rig” somewhere.

    Or it may only remain untill I close blender, or load new scene. or I may need to use “generate meat-rig” again.

    At first, I expect I only need to keep RigifySkeleton dic, but seems not.

    Though I think,, maybe we can use custom prop of scene, or meta-rig, (I try to make it so, but I suppose Thomas know more good way, hope you improve it if you can,,)

    I understand, you did not plan to divide, conversion process , so I can not request much about this ^^;

  2. engetudouiti reporter

    It seems need to change function arguments often, so I hope current plug in stabliity to convert,, then I close this request. I may try, if I can manage it. (ID prop not work for complex dic type, and I still need to get other value from default rig)

  3. Log in to comment