Script that Creates a List of all Morphs used on a Character

Does anyone know if there is a script for Daz Studio that creates a list of all the morphs used on a character with their respective values and allows them to either be displayed on screen or saved to a file?
cheers,
Martha

Comments

  • xyer0xyer0 Posts: 5,932

     Select the character, go to the Parameters tab, click Currently Used near the top of the tab, and you will be shown exactly what you seek, dear Martha.

  • 3Diva3Diva Posts: 11,509
    edited November 16

    In addition to what xyer0 said, if you want to also be able to see the corrective morphs and all the "under the hood" morphs you'll also need to go to the "hamburger menu" (lines with an arrow - see attached image) >> Preferences >> and check "Show Hidden Properties". Then select "Currently Used" in the Parameters tab and it will show all the morphs, correctives, and everything that the character is currently utilizing. 

    ShowHiddenProperties.JPG
    492 x 489 - 38K
    Post edited by 3Diva on
  • marth_emarth_e Posts: 180

    Thank you very much, xyer0 and 3Diva, for the prompt response. Indeed, that is the easiest way to see the morphs being used, but I think I didn’t explain myself well. What I’m looking for is a script that shows a list of all the morphs and their respective values as plain text. Whether it’s in the console or written to a text file, the idea is to easily export that list later to Excel, Word, or any other application. Is that possible?

    Cheers,
    Martha

  • You could use this, tweaking it to report only those with a non-zero value (or scale properties with a value other than 1) http://docs.daz3d.com/doku.php/public/software/dazstudio/4/referenceguide/scripting/api_reference/samples/properties/node_properties/start

  • marth_emarth_e Posts: 180

    Thanks a lot, Richard. I'll see if I can adapt it. I appreciate it!

  • GreymomGreymom Posts: 1,113

    Wow!  This will be useful!  Many thanks!

  • PraxisPraxis Posts: 252

    marth_e said:

    Does anyone know if there is a script for Daz Studio that creates a list of all the morphs used on a character with their respective values and allows them to either be displayed on screen or saved to a file?
    cheers,
    Martha

    This is old (2016) but still works:

    https://www.daz3d.com/forums/discussion/87636/a-script-to-control-a-selected-property-with-large-font-size-and-preview-buttons#latest

    To use:

    1.  Download the PropertyController.dsa script that is attached to that post, and save it e.g. somewhere in your DAZ Studio Content Scripts folders.
    2.  Load a Figure and apply Poses and Morphs.
    3.  With the Figure selected, launch this PropertyController.dsa script.
    4. Activate the "Utilities" tab.
    5.  Click the "List Non-Zero Morphs" or "List Non-Zero Transforms" button.
    6.  After the process has completed, the results will  appear in a NotePad window (if you have a Windows PC, else ??? on a Mac), where you can inspect/edit them and Save them to a disk file.

    The "List Morphs" facility works on anything that has Morphs - so any DAZ Figure, Animals, etc.

    The "List Transforms" facility works on anything that has Bones - so any DAZ Figure, Animals, Vehicles, etc.

    The script is in .dsa source code form, so you can modify it to suit yourself.

     

     

  • marth_emarth_e Posts: 180

    Thanks a lot, Praxis!

    It works like a charm. This is a great script with some fantastic additional features! Thank you so much for sharing it!

    I do have one question: I noticed that it organizes the morphs in a different order compared to how they appear in 'Currently Used Morphs' within Daz Studio. What criteria does the script use to sort the list of morphs?

    Again, thanks a lot!!! I appreciate it!!

  • 3Diva3Diva Posts: 11,509

    Praxis said:

    marth_e said:

    Does anyone know if there is a script for Daz Studio that creates a list of all the morphs used on a character with their respective values and allows them to either be displayed on screen or saved to a file?
    cheers,
    Martha

    This is old (2016) but still works:

    https://www.daz3d.com/forums/discussion/87636/a-script-to-control-a-selected-property-with-large-font-size-and-preview-buttons#latest

    To use:

    1.  Download the PropertyController.dsa script that is attached to that post, and save it e.g. somewhere in your DAZ Studio Content Scripts folders.
    2.  Load a Figure and apply Poses and Morphs.
    3.  With the Figure selected, launch this PropertyController.dsa script.
    4. Activate the "Utilities" tab.
    5.  Click the "List Non-Zero Morphs" or "List Non-Zero Transforms" button.
    6.  After the process has completed, the results will  appear in a NotePad window (if you have a Windows PC, else ??? on a Mac), where you can inspect/edit them and Save them to a disk file.

    The "List Morphs" facility works on anything that has Morphs - so any DAZ Figure, Animals, etc.

    The "List Transforms" facility works on anything that has Bones - so any DAZ Figure, Animals, Vehicles, etc.

    The script is in .dsa source code form, so you can modify it to suit yourself.

     

    This sounds like a very handy script! Thank you! :D

  • PraxisPraxis Posts: 252

    marth_e said:

    Thanks a lot, Praxis!

    It works like a charm. This is a great script with some fantastic additional features! Thank you so much for sharing it!

    I do have one question: I noticed that it organizes the morphs in a different order compared to how they appear in 'Currently Used Morphs' within Daz Studio. What criteria does the script use to sort the list of morphs?

    Again, thanks a lot!!! I appreciate it!!

    Glad you like it!

    The script just dumps the Morph information in the order that DAZ Studio holds it internally, i.e. as returned by the DzObject::getModifier() function on line # 607 of the script..

    Somebody (not me devil) could modify the script near line # 623 to get oValChan.getPath() and output that as well, and/or use that to organize the output into Path order (as presented in the DAZ Studio display).  Hope that helps.

     

     

  • PraxisPraxis Posts: 252

    3Diva said:

    <snip>

    This sounds like a very handy script! Thank you! :D

    You are welcome - hope it helps you!

     

  • 3Diva3Diva Posts: 11,509

    Praxis said:

    3Diva said:

    <snip>

    This sounds like a very handy script! Thank you! :D

    You are welcome - hope it helps you!

    We need more scripters in the Daz3D community (we have a handful but not many, and I'm rubbish at scripting lol), so I'm excited to check out your work! Do you have other scripts that you've shared? 

  • PraxisPraxis Posts: 252

    3Diva said:

    We need more scripters in the Daz3D community (we have a handful but not many, and I'm rubbish at scripting lol), so I'm excited to check out your work! Do you have other scripts that you've shared? 

    Yes, here are the main ones: They are all source code, and you are welcome to modify them:

    1. The one I linked above, which is the nearest to a mini-Application: https://www.daz3d.com/forums/discussion/87636/a-script-to-control-a-selected-property-with-large-font-size-and-preview-buttons#latest
    2. A single-purpose utility (which is also included in 1. above): https://www.daz3d.com/forums/discussion/85971/a-script-to-orbit-camera-around-a-point
    3. How to make stuff bounce with dForce: https://www.daz3d.com/forums/discussion/344801/free-dforce-bouncing-balls-and-things#latest
    4. Classes and inheritance in DAZ Script: See the attached Test_Inheritance.dsa: https://www.daz3d.com/forums/discussion/comment/3320486/#Comment_3320486
    5. Break a large project into separate "include" files: https://www.daz3d.com/forums/discussion/comment/3846601/#Comment_3846601

    Have fun!

  • marth_emarth_e Posts: 180

    Hello, Praxis,

    I have been adapting the functionality to a new script, and so far, I have managed to scan the list of active morphs and display them in the same order that DAZ Studio shows them in the 'currently used morphs' section. I save the table with the morphs and their respective values to a temporary file, but when I try to open Notepad automatically with the file I created, I can't get it to work. No matter how much I review that functionality in your code, I can't understand how it works. Do you have any tips on how I can open the temporary file with the morphs directly in Notepad from the script?

    Thank you in advance for all your help and for sharing your script,
    Martha

  • 3Diva3Diva Posts: 11,509

    Praxis said:

    3Diva said:

    We need more scripters in the Daz3D community (we have a handful but not many, and I'm rubbish at scripting lol), so I'm excited to check out your work! Do you have other scripts that you've shared? 

    Yes, here are the main ones: They are all source code, and you are welcome to modify them:

    1. The one I linked above, which is the nearest to a mini-Application: https://www.daz3d.com/forums/discussion/87636/a-script-to-control-a-selected-property-with-large-font-size-and-preview-buttons#latest
    2. A single-purpose utility (which is also included in 1. above): https://www.daz3d.com/forums/discussion/85971/a-script-to-orbit-camera-around-a-point
    3. How to make stuff bounce with dForce: https://www.daz3d.com/forums/discussion/344801/free-dforce-bouncing-balls-and-things#latest
    4. Classes and inheritance in DAZ Script: See the attached Test_Inheritance.dsa: https://www.daz3d.com/forums/discussion/comment/3320486/#Comment_3320486
    5. Break a large project into separate "include" files: https://www.daz3d.com/forums/discussion/comment/3846601/#Comment_3846601

    Have fun!

    Thank you so much for the links! :D It's nice of you to take the time to provide the links and share your scripts!

Sign In or Register to comment.