PDA

View Full Version : Constraint a joint to a point in a curve?


nelsonteixeira
04-07-2006, 04:06 PM
How do I contraint a joint to a point in a curve?

nelsonteixeira
04-07-2006, 04:10 PM
using motion paths with deleted animation on U attribute?? Or theres another way??

Soulcialism
04-07-2006, 07:25 PM
you could do this with the pointOnCurve -ch 1 command... if you look up pointOnCurve in the maya help you can see an example of how it could drive x y z of a joint.. doing some trickery with the output node that the -ch 1 gives you, you could have that connected to a joint and probably get the results you want.

Dr.Spaz
04-10-2006, 08:42 PM
Hi there, I have found that if you simply create a pointOnCurveInfo node (by typing in the command line), you dont have to really do much trickery. You're going to have to add an attribute onto the joint (or group above it if you prefer) that will be 0-1, and this will correspond to the position along the curve that the joint will rest on (like the U value I guess). Connections go like this:

source curve.world space -> pointOnCurveInfo.Input curve
joint.0-1 added attribute -> pointOnCurveInfo.parameter
pointOnCurveInfo.result.position -> joint.translate

what this produces is the 0-1 slider will now control the joints position along the curve. Make sure the curve is normalized so its u values are 0-1. Pretty sure those connections arent the exact naming, but you should be able to get teh gist of it. I have found alot of uses for this node, its damn sweet.

nelsonteixeira
04-10-2006, 08:52 PM
Hi there, I have found that if you simply create a pointOnCurveInfo node (by typing in the command line), .

Id like to thank everybody for the replies! Dr. Spaz, this looks like what I would learn from a DVD training with that top skilled industry guys :) . I should try that too! Im always hungry for this kind of knowledge. But I already did my workaround with animation motion path the only thing I had to do after the creation of it is delete de animation on it... This technique probably is doing preety much the same thing you teached me under the hood. So... I just post it here to contribute with something, for somebody with same issue to solve.

Cheers! :thumbsup:

suitepeas
01-13-2007, 01:43 AM
dr spaz,
thanks for the post. i was just browsing for pointOnCurveInfo and that was exactly what i needed.

CGTalk Moderation
01-13-2007, 01:43 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.