FORUMS: list search recent posts

Objects on a motion path?

COW Forums : Autodesk Maya

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
craig whit
Objects on a motion path?
on Jul 20, 2010 at 1:40:01 am

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
http://www.craigwhitaker.net


Return to posts index

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