Simply Maya User Community

Simply Maya User Community (https://simplymaya.com/forum/index.php)
-   Programming (https://simplymaya.com/forum/forumdisplay.php?f=32)
-   -   scripting shader variations (https://simplymaya.com/forum/showthread.php?t=32926)

Dann 20-08-2009 01:58 AM

scripting shader variations
 
In Renderman, it's easy to use a per object float attribute to affect a shader network in Slim. Can the same be done in the hypershader? Basically I'd like to add a float attribute to a whole bunch of objects and then use the remapHSV node to do something like:

remapHsv.value[1].value_FloatValue = $objName.variation;

Should be simple, but I've never actually done it in Maya before. I tried setting up a switch node, but that seems to force me to input foo1.variation, foo3.variation, foo3.variation manually for each of the hundreds of objects in my scene.

Thanks for the help,
-tarmy


All times are GMT. The time now is 05:29 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Simply Maya 2018