In this specific case, the correct would:

cmds.shadingNode("blendColors", asUtility=1,name="newname")

For blendcolors is an attribute from the option panel asUtility


On Dec 18, 9:49 pm, <[email protected]> wrote:
> You were close...
>
>
>
> cmds.shadingNode("blendColors", asUtility=1)
> cmds.connectAttr ( 'ik_jts1.rotate', 'blendColors1.color1', f= True)
> cmds.connectAttr ( 'fk_jts1.rotate', 'blendColors1.color2', f= True)
>
>
>
> Personally I like to use:
>
> cmds.createNode( "blendColors", name="blendColors")
>
>
>
> -brian
>
> www.meljunky.com
>
> -------- Original Message --------
> Subject: [Maya-Python] correct syntax
> From: Vitor_Lôbo_Ramos <[email protected]>
> Date: Fri, December 18, 2009 4:37 pm
> To: python_inside_maya <[email protected]>
> Cc: [email protected]
> The correct expression in python to:
> shadingNode -asUtility blendColors1;
> connectWindowWith |ik_jts1 blendColors1;
> connectAttr -f ik_jts1.rotate blendColors1.color1
> connectAttr -f fk_jts1.rotate blendColors1.color2;
> -----------------------------------------------------------------------------------------------------
> is :
> cmds.shadingNode("blendColors", asUtility=1)
> cmds.connectAttr (f= True, 'ik_jts1.rotate', 'blendColors1.color1')
> cmds.connectAttr (f= True, 'fk_jts1.rotate', 'blendColors1.color2')
> ???
> Well, I must be wrong about something .... who can help me ...
> --http://groups.google.com/group/python_inside_maya

-- 
http://groups.google.com/group/python_inside_maya

Reply via email to