Is there a way to read or write a DUF file by script.
contessg
Posts: 55
Hello,
In many cases, reading or writing a DUF file in a script would be very useful.
I tried to find a way to do so in the script documentation but I didn't find any method.
Could you give me some help.
I thank you for your replies.
Comments
I am told to tell you
http://docs.daz3d.com/doku.php/public/software/dazstudio/4/referenceguide/scripting/api_reference/samples/start#save_filters
---
http://docs.daz3d.com/doku.php/public/software/dazstudio/4/referenceguide/scripting/api_reference/object_index/file_dz
---
http://docs.daz3d.com/doku.php/public/software/dazstudio/4/referenceguide/scripting/api_reference/object_index/json
Hello,
thank you for your reply.
your first link is perfect to understand the saving of a preset. Thank you for this information.
But, I do not understand how to load a preset. I suppose the following links are used in this goal, but I do not see how to use them.
Please, can you give me other explanations. Sorry for that.
The first sample uses the built-in save filters to do the work, the other two links (plus http://docs.daz3d.com/doku.php/public/software/dazstudio/4/referenceguide/scripting/api_reference/object_index/contentmgr_dz for compressed files) give you the tools to read in a file as a data object for manipulation (rather than just having DS handle the content), if you want to edit its properties in some way (for example, correcting bad paths). If you just want to bring the content in you use http://docs.daz3d.com/doku.php/public/software/dazstudio/4/referenceguide/scripting/api_reference/object_index/contentmgr_dz
Thank you Richard,
All works perfectly. Excuse me, I didn't see this object in the documentation.
May I ask you another question.
I would like to apply a "move to floor" function to a character.
I saw a function equivalent to "Move to floor" defined in the interface exists in the samples.
Is it the only way to execute this function. It is not possible to call the function defined in the interface?
I’m on a phone atm, but check out this incredibly helpful post by Rob:
https://www.daz3d.com/forums/discussion/comment/479968/#Comment_479968
I automate a lot and have found this invaluable.
Hope this helps.
- Greg
http://docs.daz3d.com/doku.php/public/software/dazstudio/4/referenceguide/scripting/api_reference/samples/start#actions
Thank you Greg, Thank you Cris,
This ability to execute a Daz action is very useful.
I certainly will use it a lot.
Thanks again.
Gérald