PDA

View Full Version : animating rotational limits?


rusted_nut
06-07-2003, 04:57 AM
I would like to create a set up where a joint's rotate.Y has a maximum value of -45 to 45 degrees when its rotate.X value is 0 degrees - I then want the maximum rotate.Y values to shrink to -5 and 5 when its rotate.X value increases to 75 degrees.

I thought I might be able to use set driven keys but Maya will not allow the rotate limit information to become keyable. Any ideas would be appreciated.

Thanks

koinu
06-07-2003, 05:05 AM
First off are you using FK or IK joints? You should be able to set your min/max no matter what, if memory serves me correctly. If not someone please put the smack down on me.....:bounce:

rusted_nut
06-07-2003, 05:18 AM
hi koinu,
it's doesn't matter if the joint is IK or FK or a locator or even an object - i'm looking for a solution that will allow me to drive the maxium limit rotation value of an axis by another attribute

koinu
06-07-2003, 05:23 AM
What program, cause I just made some bones and set the min/max for them and it worked BTW I'm in maya.. So if I can help, do call.....Good Luck

rusted_nut
06-10-2003, 09:35 PM
I couldn't figure out a way to incorporate animated rotate limits in an expression, but here is the solution I came up with:


Create Locator, name “ctrlLOC”- this will control the object's rotation values.

Set “ctrlLOC” rotateY limits to -45, 45 .

Create second Locator, name “zeroLOC” - set rotateY limits to 0, 0.

Create object (or joint) to which the animated rotate limits will be applied, I'll name this object “ballGEO.”

Orient constrain “ballGEO” to “ctrlLOC and “zeroLOC.”

Create set driven keys using ctrlLOC.rZ as driver and ballGEO.orientConstraints as driven.

Set following keys:
when ctrlLOC.rZ = 0, zeroLOCW0 = 0, ctrlLOCW1 = 1
when ctrlLOC.rZ = -90 zeroLOCW0 = 1, ctrlLOCW1 = 0
when ctrlLOC.rZ = 90 zeroLOCW0 = 1, ctrlLOCW1 = 0

What it does: When ctrlLOC.rotateZ is at 0, ballGEO.rotateY can rotate 45 degrees in either direction. As ctrlLOC.rotateZ increases/decreases, ballGEO.rotateY rotational limits decrease. When ctrlLOC.rotateZ reaches -90/90 degrees, ballGEO.rotateY is locked at zero.

cheers,
the rusted nut

CGTalk Moderation
01-15-2006, 08:00 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.