daz3d / DazToBlender

Daz to Blender Bridge
https://www.daz3d.com/daz-to-blender-bridge
Other
217 stars 44 forks source link

Suggestion: Linux, add an option for custom content directories paths #130

Open rivetchip opened 2 years ago

rivetchip commented 2 years ago

Hello,

System Information : DTB version : da8a97d665784c286562bc82eb88db1f7eba31c3 DAZ version : 4.20.0.17 (64 bits) Blender version : 3.2.0 (installed from the blender.org TAR.XZ archive) OS : Fedora 36 (Linux)

My workflow is very atypical : I'm running DAZ thru Wine with Bottles frontend GUI : https://flathub.org/apps/details/com.usebottles.bottles , then I re-import theses assets back to Blender natively.

The first time I exported a figure using the bridge no textures images were present in any of the shaders. After few minutes debugging the addon, I saw that DTB used a wrong path :

DTB setup_materials Capture d’écran du 2022-06-15 02-56-41

How I've managed to get it working :

Correct me if wrong, but the "custom_path" option only seems to affect the FBX import, and not contents directories, right ?

If so, I think there should be an option similar to Diffeomorphic to add arbitrary custom content directories, example :

diffeomorphic 2022-06-15 03-15-44

What do you think ?

Thanks! :smile:

danielbui78 commented 2 years ago

Thanks for the feedback! The current export path system is a just a legacy holdover from the script-based DazToBlender. The Daz Bridge Library already has support for writing out a set of FBX+DTU+Textures in any arbitrary path the user wishes. We just need to update the blender-side to correctly read from anywhere. My current plan is to get rid of the Toolshelf "Import" button altogether and implement a more standardized File -> Import -> DTU option in Blender.