Is there a script that can change all wearable resolution?

JamesJames Posts: 1,003
edited January 8 in Daz Studio Discussion

I'm exporting and importing cloth for fixing very often.
Rather than just clicking every item, I wonder if there's a script that can change the resolution of wearable at once.
I already have that can change all objects.
But it takes too long, I just need the wearables.

 

Post edited by James on

Comments

  • Richard HaseltineRichard Haseltine Posts: 100,481

    You could try saving Properties presets withj the desired values, then multi-select the items and apply the desired preset. Of coruse you can, with the default options in the proeprties panes, multi-select the items and then set the value for each in one go using the slider.

  • crosswindcrosswind Posts: 6,831
    edited January 9

    James said:

    I'm exporting and importing cloth for fixing very often.
    Rather than just clicking every item, I wonder if there's a script that can change the resolution of wearable at once.
    I already have that can change all objects.
    But it takes too long, I just need the wearables.
     

    I wrote simple ones as attached. 1st one is for setting as Base Resolution, 2nd one is for resetting to High Resolution.

    Pls be noted that the script now just support Wearable items (figures) with Content Type including keywords "Wardrobe" or "Wearable". You may add other ContentTypes to Line 49... For instance, add an "Accessory" type...

      if( getCntType( oNode ).indexOf( "Wardrobe" ) > -1 || getCntType( oNode ).indexOf( "Wearable" ) >- 1 || getCntType( oNode ).indexOf( "Accessory" ) >- 1){

    And there're quite a lot of Wearable assets have wrong metadata. If you encounter such an issue, first check from: Edit - Figure -  Scene Identification - Content Type field, then correct the metadata if it's wrong. Pls test the scripts as usual (assign shortcut if needed) and let me know if they work well.

    dsa
    dsa
    SetBaseResolution - Wearables.dsa
    2K
    dsa
    dsa
    SetHighResolution - Wearables.dsa
    2K
    Post edited by crosswind on
  • JamesJames Posts: 1,003

    Oh yes, yes.
    I will use this very often.
    Thanks a lot.

  • JamesJames Posts: 1,003

    Can I use this also for figure, by changing "Wardrobe" to "Actor"?

  • crosswindcrosswind Posts: 6,831

    James said:

    Can I use this also for figure, by changing "Wardrobe" to "Actor"?

    Yep, certainly ~  As Genesis figure have many sub-Nodes (bones), it'll take more time. Better try the attached one.

     

    dsa
    dsa
    Set Base Resolution - Actor.dsa
    2K
  • Richard HaseltineRichard Haseltine Posts: 100,481

    Please make sure you comply with the license terms for the sample scripts - removing most of the preamble comments, leaving just the link, is not the correct method.

  • crosswindcrosswind Posts: 6,831

    Where is the link of terms ? I'll follow tha if I use sample codes.

  • Richard HaseltineRichard Haseltine Posts: 100,481
    edited January 9

    They are linked in the footers of the page, in the callouts above each sample, and in the comments at the beginning of each downloaded sample script. http://creativecommons.org/licenses/by/3.0/

    Post edited by Richard Haseltine on
  • crosswindcrosswind Posts: 6,831

    Richard Haseltine said:

    They are linked in the footers of the page, in the callouts above each sample, and in the comments at the beginning of each downloaded sample script. http://creativecommons.org/licenses/by/3.0/

    Ohoh ~~ I misunderstood, I have that link ! Thanks ! 

  • JamesJames Posts: 1,003

    @crosswind
    And to turn figure back to high res, what do I need to change in the code?

  • crosswindcrosswind Posts: 6,831

    James said:

    @crosswind
    And to turn figure back to high res, what do I need to change in the code?

    Just go to line 57, change the value 0 to 1 .

  • KarenKaren Posts: 93

    That's a great script :-)

    Since you know a lot about scrips, may I ask you, if you know something about one I came across yesterday? It's called dzcontentreplacemgr. It seems to exist but I can't find it.

    I wrote about it here: https://www.daz3d.com/forums/discussion/669161/script-to-replace-one-type-of-content-with-another-dzcontentreplacemgr

  • crosswindcrosswind Posts: 6,831

    Karen said:

    That's a great script :-)

    Since you know a lot about scrips, may I ask you, if you know something about one I came across yesterday? It's called dzcontentreplacemgr. It seems to exist but I can't find it.

    I wrote about it here: https://www.daz3d.com/forums/discussion/669161/script-to-replace-one-type-of-content-with-another-dzcontentreplacemgr

    Oh, I'm just a beginner of Daz Script... I just wrote a post to your thread. Pls take a look ~~

Sign In or Register to comment.