Need help with ( Save a Material(s) Preset Script )

The Save a Material(s) Preset script running in Silent mode isn't saving the same as it does with the same user input information.

With run silent set to true I get this.

 

I change the run silent to false.

 

I use the same options that run silent would use in the options and I get this witch is what I want.

So the question is how do I get it to run silent and save the file out like it does with user input?

Comments

  • The formatting of the commands is explained in the comments:

    // The material asset filter supports property sub-items;// if the property name is specified alone, as a string,// it will cause the Value and Image data for that property// to be saved to the preset; if the property element is// specified in an array of strings, where the first item// is the property name followed by "Value" and/or "Image",// then only the specified data for that property will be// saved to the preset

    so you need to use

    var aPropertyNames = [ ["Diffuse Color", "Image", "Value" ] ];

    to get both values and maps

  • Thanks, Richard after going back and reading the comment again now I see where I went wrong at that time I was reading the comment I was tired and misread it.

    Thanks again.

Sign In or Register to comment.