View Full Version : MEL - How to add an RGB color slider attribute?

09 September 2010, 12:34 PM
How do i add an RGB color slider attribute to a null group to control the RGB of a lamberts incandescence?


09 September 2010, 12:47 PM
is this two separate questions? How to create the attr, and how to connect it to a lambert incandescence?

the addAttr command should be used to add the RGB attribute, making sure you use the -uac flag to denote it is a color and not just 3 floats. Then you use the connectAttr command to connect it to the lambert incandescence attribute.

check out the command docs for both these commands, the code you need is included as examples.


CGTalk Moderation
09 September 2010, 12:47 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.