Forum: Autodesk Maya
Posted By: filmguy01
Post Time: 04 April 2018 at 01:40 PM
Text:
So I've written a script that converts vray shaders into redshift shaders. Very useful!
It wasn't until after I finished though, that I realized roughness in vray shaders in measured on a 0-1 scale. 0 being completely rough and 1 being completely shiny.
Redshift, however, is the opposite. 1 is completely rough and 0 is completely shiny.
So I need to write a bit of code that reverses these values. If the value is .75 in vray it needs to be .25 in redshift. If it is .4 in vray it needs to be .6 in redshift.
I'm not a very experienced coder so I don't really have a sense of how this could be done. Or how easy it would be. Any thoughts?
Thanks!!
Posted By: filmguy01
Post Time: 04 April 2018 at 01:40 PM
Text:
So I've written a script that converts vray shaders into redshift shaders. Very useful!
It wasn't until after I finished though, that I realized roughness in vray shaders in measured on a 0-1 scale. 0 being completely rough and 1 being completely shiny.
Redshift, however, is the opposite. 1 is completely rough and 0 is completely shiny.
So I need to write a bit of code that reverses these values. If the value is .75 in vray it needs to be .25 in redshift. If it is .4 in vray it needs to be .6 in redshift.
I'm not a very experienced coder so I don't really have a sense of how this could be done. Or how easy it would be. Any thoughts?
Thanks!!