PDA

View Full Version : pb with extra attribute


Titane-78
06-22-2003, 09:37 AM
My Problem :annoyed:

i want to add a color attribute, in the extra attribute of my cartoon shader. cf image

http://marc.dubrois.free.fr/down/cartoon_shader.gif

to do this, i've include in the .ma file this syntax :

createNode surfaceShader -n "cartoon_shader";
addAttr -ci true -uac -sn "base_color" -ln "base_color" -at "float3" -nc
3;
addAttr -ci true -sn "base_colorR" -ln "base_colorR" -dv 0.865 -at "float"
-p "base_color";
addAttr -ci true -sn "base_colorG" -ln "base_colorG" -dv 0.945 -at "float"
-p "base_color";
addAttr -ci true -sn "base_colorB" -ln "base_colorB" -dv 1 -at "float" -p "base_color";

my shader work, but only when i use a basic color, when i drag a file texture, in my base_color attr, my shader become black.

please can somebody help me, i just want to add a color attr operational with file texture.:beer:
in the extra attribute of my cartoon shader.

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