A script for visual style shaders
Since I am applying that shader to the entire sci-fi set, I would love to save myself some time by doing a script that apply it to every damn object in my scene.
For that I guessed it would need to make a script.
/* Update */
Since it seems a huge work I'm getting on, I guess I have to chop it down in bits. I would like to understand how to store the current's objects maps & colors for the diffuse. I'll try to do go one step at a time !
/* old post */
Franckly, it will be my first script ever, so I hope I will be able to do it.
I need to store the following variable :
the file used for the diffuse, and the color of the diffuse;
the file used for the specular, and the color of the specular,
the spec's strenght and gloss,
the bump map, strenght, min and max,
then I would need to apply the visual shader,
and after, to restitute those variables where applicable in the viusal style shader.
I hope you can help me to know where to start to do that !
What I am looking for are clues, web pages, whatever can indicate me how to start this.
For example, telling me how to store the variable (just one example) so I can begin from there would be greatly appreciated.
Uky.
Comments
I'd start by saving a deprecated .dsa shader preset and looking to see how that works, alongside the DAZ Studio 3 scripting docs available here http://docs.daz3d.com/doku.php/public/software/dazstudio/3/start
Okay, so I am digging through it.
I get that after I have found how to store the current variables, I will have to loop through each object and do something like :
Where I will pass on every variable I have stored at the begining.
I am unsure of how to store the current objects in my scene, so that I can reattribute the correct maps afterward.