View Single Post
# 170 13-09-2006 , 01:07 PM
arneoog's Avatar
Registered User
Join Date: Mar 2006
Posts: 189
-The first one adds two extra attributes to the selected object

$indSetShaderNode = ( $indPolyObject[0] + "." + $indShaderNode ); <<--This is needed to set the attributes
$indSetGenNode = ( $indPolyObject[0] + "." + $indGenNode ); <<--This is needed to set the attributes

addAttr -ln "ShaderName" -sn $indShaderNode -dt "string";
addAttr -ln "GenerateThis" -sn $indGenNode -at "bool";
setAttr $indSetShaderNode -type "string" $shaderName; <<--This sets the attributes
setAttr $indSetGenNode true; <<--This sets the attributes


-The second one creates a Node to hold the Material Settings for indigo Diffuse material

-The third in to change the settings in the Node created above

Good luck scripting! :p user added image


Last edited by arneoog; 13-09-2006 at 01:10 PM.