Motion path question

Hello everyone,

Please excuse the long post, I’ve included the MEL stuff.

I have some cubes that are attached to a motion path from this mel script…

for ($i=0; $i<10; $i++)
{
float $ropeUpos = ($i * 0.1) + .05;
select -r rope1;
polyCube -w 1 -h 2 -d 1 -sx 1 -sy 1 -sz 1 -ax 0 1 0 -cuv 4 -ch 1;
group; xform -os -piv 0 0 0;
string $dnaBlock [] = `ls -sl`;
string $motionPathNode1 = `pathAnimation -follow true -fractionMode true
-curve rope1 $dnaBlock[0]`;
select -r ($motionPathNode1 + "_uValue");
setAttr ($motionPathNode1 + ".uValue") $ropeUpos;
}

I want to have the ability to move the cubes away from the curve/motion path, and have them animate back onto the path at whatever point in time I decide. I would also like to be able to reshape the path/curve interactively, possibly even keyframe it, and have the cubes "snap" back to the path.

Is this possible?

Thank you very much,
Craig

Craig Whitaker
MFA Candidate
New York University
www.craigwhitaker.net

No Responses to “Motion path question”

Post a Comment