Script to set Glossy Roughness to Zero
Hi Guys, first time posting here ;-)
As per my thread title, I'm trying to code a script that will set the [material-> Glossy Roughness=ZERO] for all objects in my scene.
I'm completely new to DAZ API Scripting so, I'm completely lost, I've played with some free scripts available here, in specific with the mcjAllBlackExceptEmissive.dsa by mcasual.
But no joy so far, I dont think there is a functiom 'setGlossyColor' as it exists the 'setDiffuseColor' and like so 'SetGlossyRoughness' would be a bliss...
Like I said, I'm new to DAZ API Scripting but an expereinced Programer/Developer, but, also, I'm not trying to master the DAZ API, so I would not spend incontable number of hours to study/learn the DAZ API, and so to finish, A shortcut from any of you guys, would be very welcome.
Thanks all for reading,
M.
Comments
The Mac users had a problem with these materials in 2016, and Esemwy wrote this to clear the maps. I assume it will still work.
@https://www.daz3d.com/forums/profile/188120/Martirilla,
Thanks so much!! The original script did not make any effect, it runs without any errors but no effect whatsoever, but I did modify (as above) and now it does exactly what I wanted!
THANKS A MIL!!!
MBS
Not sure if clearing the map is equivalent to setting to zero as OP requests, so this does both.
Hi Ominiflux, thanks! But I got sorted out as my prev comment.
I did not test your script, but seems to me that it will work as well.
Thanks for thaking your time to reply.
MBS.