Maya 2020 fundamentals - modelling the real world
Get halfway through a model and find it's an unworkable mess? Can't add edge loops where you need them? Can't subdivide a mesh properly? If any of this sounds familiar check this course out.
# 1 20-08-2009 , 01:58 AM
Dann's Avatar
Registered User
Join Date: Feb 2003
Location: Los Angeles
Posts: 695

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

Posting Rules Forum Rules
You may not post new threads | You may not post replies | You may not post attachments | You may not edit your posts | BB code is On | Smilies are On | [IMG] code is On | HTML code is Off

Similar Threads