Leffler
08-07-2008, 03:46 PM
Hello,
I´m trying to get a hold of the number generated by the DistanceDimension tool. I´m doing a stretchy leg.
The distance should be like this to access:
L_stretchyLeg_distance.distance
And, I can get it in an expression that looks like this:
if(R_stretchyLeg_distanceShape.distance >=5)
but now I want to store it in an variable to put the value of that variable into the input1X of a Multiply/divide node
So I was thinking something like this should do it:
$getDistance = L_stretchyLeg_distance.Distance;
divNode..input1X = $getDistance;
but it doesn´t work. Maya tells me "// Error: Line 1.50: Invalid use of Maya object "L_stretchyLeg_distance.Distance". // "
Any ideas?
// Otto
I´m trying to get a hold of the number generated by the DistanceDimension tool. I´m doing a stretchy leg.
The distance should be like this to access:
L_stretchyLeg_distance.distance
And, I can get it in an expression that looks like this:
if(R_stretchyLeg_distanceShape.distance >=5)
but now I want to store it in an variable to put the value of that variable into the input1X of a Multiply/divide node
So I was thinking something like this should do it:
$getDistance = L_stretchyLeg_distance.Distance;
divNode..input1X = $getDistance;
but it doesn´t work. Maya tells me "// Error: Line 1.50: Invalid use of Maya object "L_stretchyLeg_distance.Distance". // "
Any ideas?
// Otto
