FORUMS: list search recent posts

what is wrong with the syntax in my expression?

COW Forums : Autodesk Maya

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
raine di giano
what is wrong with the syntax in my expression?
on Nov 3, 2012 at 5:55:48 am

I'm not a pro at scripts but im learning them and I've got this expression boiled down to this now:


//r fold

$elbowRotateZ = `getAttr _bn_R_elbow01.rotate.z`;
$wristRotateZ = `getAttr _bn_R_elbow01.rotate.z`;
if(( $elbowRotateZ >= 0 || $elbowRotateZ >= -76) && ($wristRotateZ >= 0 || $wristRotateZ <= 26))
cluster2Handle.envelope = `smoothstep 0 1 (.5 )`;

else cluster2Handle.envelope = `smoothstep 1 0 (.5)`;



I get an error before both lines when i use setAttr.

Also even when i take off setAttr and simply use
else cluster2Handle.envelope = 0

I get this error


// Error: Line 6.51: Invalid use of Maya object "cluster2Handle.envelope". //

Can anyone let me know whats up?


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]