PDA

View Full Version : addAttr : type color


Nicool
07-02-2003, 04:38 PM
Hi,

I'm working on a scripts which builds a shading network. I want add an attribute type color (that will be connected to a color).
In the doc, it's say to use "float3" attribute type like:

addAttr -ln "ColorCool" -at float3 myNode;
But no attr is added (even on calling all attributes by listAttr)

1001 thanks

klod
07-02-2003, 04:53 PM
hi,

just use "-dt float3" instead of "-at float3".

klod

Nicool
07-02-2003, 05:03 PM
I'll try thanks ;)

Nicool
07-07-2003, 08:10 AM
It didn't work.
Here is the good workflow :

addAttr -ln velvetHightlightColor -at float3 -uac $lambertShader;
addAttr -ln velvetHightlightColorR -at "float" -p velvetHightlightColor $lambertShader;
addAttr -ln velvetHightlightColorG -at "float" -p velvetHightlightColor $lambertShader;
addAttr -ln velvetHightlightColorB -at "float" -p velvetHightlightColor $lambertShader;

// And color conection (if needed)
connectAttr ($lambertShader + ".velvetHightlightColor") ($rampTexture + ".colorEntryList[0].color");
:beer:

CGTalk Moderation
01-15-2006, 01:00 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.