SimplyMaya Forums

Welcome to the forum, feel free to ask questions here.

Home / forum / Lounges / Maya Basics & Newbie Lounge / Setting Rotation Limits
Register FAQ Members List Calendar Mark Forums Read

New Thread
 
Thread Tools
Old 29-12-2004, 08:45 PM   #1
AgentCapt
Registered User
 
Join Date: Nov 2004
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default Setting Rotation Limits

Im setting up a farm seen as it seems to be popular at the moment and im a n00b to 3dcg. for the doors im trying to set rotational limits just as i would do with an IK handle.. can anyone help me address this?
AgentCapt is offline   Reply With Quote
Old 30-12-2004, 08:14 AM   #2
blomkaal
Subscriber
 
blomkaal's Avatar
 
Join Date: May 2004
Location: Denmark
Posts: 816
Thanks: 0
Thanked 4 Times in 4 Posts
Default

You could add an attribute...

Haven't done this in a while, so bear with me if it ain't completely correct:

1. Make sure the door's pivot is where you want the it to revolve around.

2. Go to Modify -> Add Attribute and name the attribute (something like "swing" or "open" or something like that), and enter the values. Minimum should be 0 and Maximum should probably be the amount you want it to be able to open in degrees (if you want it to open to 180, make the max value 180) and default doesn't really matter...

3. Key the values with the rotate attritube using Set Driven Key (Animate -> Set Driven Key -> Set [Option box])

Assuming you had to door selected, it will be loaded as the Driven object. If not, click Load Driven. Still with the door selected, click Load Driver.

In the Driver window, select you new attribute, and in the Driven window, select Rotate Y. Make sure that both attributes are set to 0, and then click Key.
Set the new attribute to its maximum and Rotate Y to the max you want the door to open, and click Key again.

You should now have a door that opens. To test it, click the attribute you added (the name, not the input box) and drag with the MMB in the work area, and watch your door swing open!


-Blomkaal
blomkaal is offline   Reply With Quote
Old 31-12-2004, 11:12 PM   #3
AgentCapt
Registered User
 
Join Date: Nov 2004
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default

thanx i will try this when i get home again and let you know what happens..
AgentCapt is offline   Reply With Quote
Old 02-01-2005, 09:50 AM   #4
blomkaal
Subscriber
 
blomkaal's Avatar
 
Join Date: May 2004
Location: Denmark
Posts: 816
Thanks: 0
Thanked 4 Times in 4 Posts
Default

Yeah let me know if it works... I'm a bit curious about that myself
blomkaal is offline   Reply With Quote
Old 02-01-2005, 07:58 PM   #5
AgentCapt
Registered User
 
Join Date: Nov 2004
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default

yes it did work.. but i was lloking now into a hinge constraint with the door as an ARB thats affected by dynamics...
AgentCapt is offline   Reply With Quote
Old 03-01-2005, 03:01 PM   #6
blomkaal
Subscriber
 
blomkaal's Avatar
 
Join Date: May 2004
Location: Denmark
Posts: 816
Thanks: 0
Thanked 4 Times in 4 Posts
Default

Not quite sure what you mean, but if you want hinges to move with the door, just parent them together...
blomkaal is offline   Reply With Quote
Old 03-01-2005, 04:22 PM   #7
mtmckinley
The Maya Mountain
 
mtmckinley's Avatar
 
Join Date: Aug 2002
Location: Seattle, WA
Posts: 8,245
Thanks: 1
Thanked 25 Times in 25 Posts
Default

In the joint attributes, you have rotation limits section where you can set angles.
__________________
-Mike
www.mtmckinley.net
The Maya Toolbelt
mtmckinley is offline   Reply With Quote
Old 03-01-2005, 05:51 PM   #8
AgentCapt
Registered User
 
Join Date: Nov 2004
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default

awesome thanx MT!!
AgentCapt is offline   Reply With Quote
Old 03-01-2015, 03:46 AM   #9
LAOMUSIC
LAOMUSIC ARTS
 
LAOMUSIC's Avatar
 
Join Date: Feb 2006
Location: Berlin, Germany
Posts: 2
Thanks: 2
Thanked 0 Times in 0 Posts
Default

I am trowing a ball against a door which have a Hinge Constraint to it.

Where to find the settings for the hinge Constraint Limits ?
__________________
LAOMUSIC ARTS

Last edited by LAOMUSIC : 03-01-2015 at 04:00 AM.
LAOMUSIC is offline   Reply With Quote
Old 03-01-2015, 12:00 PM   #10
Jay
Lead Modeler - Framestore
 
Jay's Avatar
 
Join Date: Feb 2003
Location: UK
Posts: 6,276
Thanks: 41
Thanked 428 Times in 384 Posts
Default

For rotation limits do as As Mike said...its the easiest option of all. Select your object go to the Attributes for the model (not the shape) scroll down to Limit Information and open the Rotate tab, you can set your limits there.

'Hinge Constraint' is there such a constraint?? Im still in 2014. The setting/attributes for most things are always in the attribute editor. Seek and you will find.

Jay
Jay is offline   Reply With Quote
New Thread

« Previous Thread | Next Thread »

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

1 Month

$34

Month-to-month billing
$34/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
 
 

3 months

$87

Billing every 3 months
$29/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
Save $5 per month or $15 in total compared to monthly billing with this package.

12 months

$288

Billing every 12 months
$24/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
Save $10 per month or $120 in total compared to monthly billing with this package.

Your plan will automatically renew. You can cancel at any time via your PayPal account to avoid being charged again.

You can view the FAQ on our video plans here. You can contact us directly here. By clicking one of the buttons above, you agree to our Terms and Privacy Policy.