fatsumo
09-23-2009, 03:18 PM
Hi guys,
in the process of making a script for a job im working on and am falling short on two hurdles.
So far I am using colourAtPoint to drive a ramp through my object turning on the vis as it goes. Works great!
Next I want it to change the pivots on my objects so they rotate from the last one displayed.
After this I want them to rotate from 180 to 0 but with the interpolation inbetween. So far I can just get them to snap and that's all.
Any ideas would be amazing!
This is my code after colourAtPoint
//
for( $i = 1; $i < size( $offsets ); $i++ )
{
$attrib = ($obj + $i + ".visibility");
setAttr $attrib ($offsets[$i]);
setKeyframe $attrib;
}
};
//
in the process of making a script for a job im working on and am falling short on two hurdles.
So far I am using colourAtPoint to drive a ramp through my object turning on the vis as it goes. Works great!
Next I want it to change the pivots on my objects so they rotate from the last one displayed.
After this I want them to rotate from 180 to 0 but with the interpolation inbetween. So far I can just get them to snap and that's all.
Any ideas would be amazing!
This is my code after colourAtPoint
//
for( $i = 1; $i < size( $offsets ); $i++ )
{
$attrib = ($obj + $i + ".visibility");
setAttr $attrib ($offsets[$i]);
setKeyframe $attrib;
}
};
//
