Monday, July 22, 2013

For bored Maya TD's 1.

We all know if we create a curve and place an object on it using motionPath there will be two positionMarker node to indicate the first and last frame of the animation.


I just recognized these nodes are called something like this:

curveShape1->positionMarkerShape1
curveShape1->positionMarkerShape1

And guess what: you can select them like this:

select -r curveShape1->positionMarkerShape2;

or like this as well:

select -r positionMarkerShape2;

And if it is not enough: the time attribute of the positionMarker adjust the animation length as well. I've never used it before.

For me it was an interesting because I tested a python script which called IsShape and I wanted to check whether it produces an error with positionMarkers. More about about this here.

This positionMarker / motionPath setup rised another question. Is it possible to place only a positionMarker on a curve manually? As we can see if we use the menu function "Attach to MotionPath" it calls a mel command pathAnimation. Because it is not a .mel script I can't find out what it does exactly
I tried like this:
createNode positionMarker;
connectAttr -f positionMarkerShape1.time motionPath1.positionMarkerTime[0];
We can say this setup is close but not enough :)

Can somebody reproduce what "Attach to MotionPath" menu command do with positionMarkers mannually?

No comments:

Post a Comment