Is there a way to edit scene files without Daz Studio?

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

  • LindseyLindsey Posts: 1,999
    edited May 2017

    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.

    Post edited by Lindsey on
  • AtiAti Posts: 9,130
    Lindsey said:

    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... :))

  • Richard HaseltineRichard Haseltine Posts: 100,826

    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).

  • AtiAti Posts: 9,130

    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!

     

  • glaseyeglaseye Posts: 1,311
    Ati said:

    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++)

     

     

  • AtiAti Posts: 9,130

    Thanks for the tips!

  • Richard HaseltineRichard Haseltine Posts: 100,826

    You can also use the Batch Convert pane in DS for compressing and uncompressing.

Sign In or Register to comment.