Make All Bones Poseable Breaks Convert to Rigify
Issue #616
resolved
This issue only affects one of my characters. I tried the same process on a basic Genesis 8 Male and everything worked as expected.
See the attached .blend for the scene that is giving me the issue.
To replicate the issue:
- Use “Make All Bones Poseable”
- Use “Convert to Rigify”
Here is the log file after receiving the error:
Loading DAZ
File paths cleared
DAZ loaded
Load settings from C:/Users/USER/import-daz-settings-28x.json
loading in background
<bpy_struct, WindowManager("WinMan") at 0x000001ABFF249638>
Read blend: F:\USER\Desktop\Make All Bones Poseable - Rigify Error.blend
loading in background
<bpy_struct, WindowManager("WinMan") at 0x000001ABFF249638>
Rename bones
Change constraints
Add fin bone drivers
Restore bone drivers
Restore sum drivers
Update scripted drivers
Update drivers
Update vertex groups
Update shapekeys
Make All Bones Poseable completed in 0.1 seconds
REFRESH JIGGLE LIST
GENERATING BONES FOR: Colossus.002
post 1 1
Modifying DAZ rig to Rigify
Create metarig
Fix metarig
Fix bones genesis8
Connect to parent
Setup DAZ skeleton
Fit to DAZ
Reparent bones
Add props to rigify
Set connected
Metarig created
Rigify metarig
Fetch rig.
Clear rig animation data.
Create main WGTS: 0.001
Duplicate rig: 0.017
Instantiate rigs: 0.002
Initialize rigs: 0.001
Prepare bones: 0.001
Generate bones: 0.024
Parent bones: 0.014
Configure bones: 0.012
Preapply bones: 0.005
Apply bones: 0.002
Rig bones: 0.025
Generate widgets: 0.020
Assign layers: 0.015
Finalize: 0.025
The rest: 0.017
Fix generated rig rig
Setup DAZ Skeleton
Setup extras
Get driven bones
Add extra bones
Create group bones
Add parents to extra bones
Lock extras
Add DAZ properties
Handle bone parents
Change vertex groups
Fix drivers
Fix correctives
(rig 0)
Clean up
Info: Deleted 1 object(s)
Could not activate metarig
Could not activate rig
Python: Traceback (most recent call last):
File "C:\Users\USER\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\Diffeomorphic-import_daz-7f62cd6f25f4\error.py", line 217, in execute
self.run(context)
File "C:\Users\USER\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\Diffeomorphic-import_daz-7f62cd6f25f4\rigify.py", line 1316, in run
gen = self.rigifyMeta(context)
File "C:\Users\USER\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\Diffeomorphic-import_daz-7f62cd6f25f4\rigify.py", line 852, in rigifyMeta
self.rigifyMeta1(context)
File "C:\Users\USER\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\Diffeomorphic-import_daz-7f62cd6f25f4\rigify.py", line 1117, in rigifyMeta1
bpy.ops.object.mode_set(mode='POSE')
File "C:\Program Files\Blender Foundation\Blender 2.93\2.93\scripts\modules\bpy\ops.py", line 132, in __call__
ret = _op_call(self.idname_py(), None, kw)
RuntimeError: Operator bpy.ops.object.mode_set.poll() failed, context is incorrect
location: <unknown location>:-1
Error: Python: Traceback (most recent call last):
File "C:\Users\USER\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\Diffeomorphic-import_daz-7f62cd6f25f4\error.py", line 217, in execute
self.run(context)
File "C:\Users\USER\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\Diffeomorphic-import_daz-7f62cd6f25f4\rigify.py", line 1316, in run
gen = self.rigifyMeta(context)
File "C:\Users\USER\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\Diffeomorphic-import_daz-7f62cd6f25f4\rigify.py", line 852, in rigifyMeta
self.rigifyMeta1(context)
File "C:\Users\USER\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\Diffeomorphic-import_daz-7f62cd6f25f4\rigify.py", line 1117, in rigifyMeta1
bpy.ops.object.mode_set(mode='POSE')
File "C:\Program Files\Blender Foundation\Blender 2.93\2.93\scripts\modules\bpy\ops.py", line 132, in __call__
ret = _op_call(self.idname_py(), None, kw)
RuntimeError: Operator bpy.ops.object.mode_set.poll() failed, context is incorrect
location: <unknown location>:-1
post 1 1
Comments (4)
-
reporter -
repo owner Should work now. The importer puts everything related to the character in a separate collection. The problem arose if you moved it to the scene collection.
-
reporter Awesome, it worked! I’m glad it was such an easy fix. Thanks, I’ll mark as resolved.
-
reporter - changed status to resolved
Issue occured if rig was in scene collection.
- Log in to comment
After further testing, it actually seems like importing morphs (face units, FACS units, etc.) also causes the same error. I’ve tried all of these things in isolation and the only way I can get the rig to convert to Rigify is if I don’t merge geografts, I don’t import any morphs, and I don’t use any of the Finishing rig steps.