Is there a way to edit scene files without Daz Studio?
Ati
Posts: 9,130
Is there a utility that quickly edits Daz scene files without loading the scene file into Daz Studio? Is there a trick to get the .duf file as a humanly readable and editable text file?
I have quite a few scene files where I need to change two parameters. One down to 0% another up to 100%. Loading the scenes into Daz Studio one by one would take hours. Is there a faster way to do this?
Comments
This should be up to the task: https://www.daz3d.com/dson-editor
Edit: If you tell me the items you want to change, I can load one of my files and show you what it looks like.
Wow, thanks, I don't remember seeing this item yet.
I have the wrong head morph on. :-/ The change would be Belle Head 100% to Belle Head 0% and Kori Head 0% to Kori Head 100%. I need to redo 30-40 files that each have heavy natural elements (trees, grass, flowers etc.), and thus take a really long time to load.
(I even know how I messed this up, I just don't know how I haven't noticed it before... :))
The .duff iles are human readable (if you read code) -they are just compressed by default. For a batch conversion like this I'd be slightly tempted to write a script (use the DzGZFile to open the file and load as a string, feed that to the JSON parser, make your changs - which mightt ake a little figuring out - use JSON to turn the modified datat back into as tring, and save the modified file - my Remove Duplicate IDs script would show a way to do all but the middle step).
Oh, so it's just zipped up, and the inside of it is actually readable. This is great news, I think I can work with this. Thanks!
I get the best results opening it with 7zip. There's one big text file within the compresed .duf. You can extract that file and add the .duf extension to it. it is a fully working, uncompressed duf file then, readable with a text-edior (with my preference, notepad++)
Thanks for the tips!
You can also use the Batch Convert pane in DS for compressing and uncompressing.