Solution for importing pose issue of blender bridge[bug fix]
If you ever used daz to blender bridge and importing a pose with it. You should know you gonna fail in most case. Because there is a big bug in this bridge.
Now, I fixed it for everyone.
The reason this bridge can not import your pose is: it didn't handle scale data in your .duf pose file. So all the rotation data is covered by scale data into [1,1,1] then loaded into your blender model.
So, the solution is: ignore scale data when importing pose. Here is the steps:
* in windows, go to your "%appdata%\Blender Foundation\Blender\BLENDER_VERSION\scripts\addons\DTB" folder, (change BLENDER_VERSION to your blender version)
* find this file: "Poses.py"
* open it with text, search this line:
self.pose_data_dict[bone][trans_key][index] = value
change it into:
if transform != "scale":
self.pose_data_dict[bone][trans_key][index] = value
* save file
* delete cache folder: "__pycache__"
* open your blender, now you can import your pose correctly.
I also create a pull request to daz to blender bridge's github repo:
https://github.com/daz3d/DazToBlender/pull/111
I took hours to find out this bug and kind of angry about it. Becasue handle scale data is the basic and this issue can re-created on almost every .duf pose file. Still, nobody fix it for such a long time.
Comments
Thank you! How many hours of reposing have you just save me...?
Thank you so much! do you know why my DTB folder / poses.py file do not exist ?
Is anyone having luck getting Genesis 9 poses to load on bridge characters in Blender (version 3.6)?
Which version of Blender is the latest Daz to Blender Bridge most tested with?
Latest version of DazToBlender Bridge. Latest version of Daz. Blender 3.5. Replaced self.pose_data_dict[bone][trans_key][index] = value in Poses.py with: if transform != "scale":
self.pose_data_dict[bone][trans_key][index] = value
Saved.
Deleted cache folder: "__pycache__"
Closed explorer windows. Closed text editor. Opened Blender. Closed Blender. Opened Daz. Posed an 8.1 figure, quick, no dForce. Tried 3 differnt export settings all with the same results. Send to Blender Bridge. Opened Blender 3.5 and got only a slight improvement, not the full pose as seen in attached screenshot... uploading... uploading... uploading... not going to rage quit... uploading... I'll upload it elswhere and embed it. What did I do wrong?
I think I found the problem. My exhasted brain. I'll uninstall Daz To Blender Bridge via the DIM, delete all (emphasis on "all") associated files. Uninstall Blender. Reinstall Blender, likely 3.6, reinstall the Daz To Blender Bridge, then check the .py & modify if neccessary. My appologies butaixianran
Thank you! Thank you! Thank you! The new itteration of Daz to Blender bridge, was "almost" everything I wanted, but a huge problem was that I couldn't bring my own poses into Blender. You've made me so happy!
Chou-Vert
Hi,
I made the changes but still cant import my pose. I'm currently using Blender 3.6, what might be the cause of the problem?
i'm receiving this error when trying to import any pose, eighter mine or from daz presets.
Python: Traceback (most recent call last):
File "C:\Users\irmak\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\DTB\DtbOperators.py", line 441, in execute
pose = Poses.Posing("POSE")
File "C:\Users\irmak\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\DTB\Poses.py", line 25, in __init__
self.select_figure()
File "C:\Users\irmak\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\DTB\Poses.py", line 54, in select_figure
bpy.context.view_layer.objects.active = bpy.data.objects[fig_object_name]
KeyError: 'bpy_prop_collection[key]: key "Genesis8Female.001" not found'