# SimplyMaya Forums

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

Home / forum / Lounges / Maya Basics & Newbie Lounge / How to keyframe the position of a pivot?
 Register FAQ Members List Calendar Mark Forums Read

 22-12-2003, 08:10 PM #1 LeoGeo Registered User     Join Date: May 2002 Posts: 21 Thanks: 0 Thanked 0 Times in 0 Posts How to keyframe the position of a pivot? I'm trying to animate a cube rolling on a floor. The problem is the pivot of the cube should change very 90 degree but I don't know how to key it . Can someone give me a hand please. Thanks.
 22-12-2003, 08:28 PM #2 3djoe Subscriber     Join Date: Nov 2002 Location: CT USA Posts: 566 Thanks: 0 Thanked 0 Times in 0 Posts I am not sure you can. But why not put locators in the corners and key using the 4 locators. __________________ Never Do Today What You Can Put Off Till Tomorrow.. My New Site MayaFx.com
 22-12-2003, 09:22 PM #3 dannyngan Registered User     Join Date: Dec 2002 Location: Seattle, WA Posts: 1,154 Thanks: 0 Thanked 1 Time in 1 Post You can't keyframe a pivot point. However, you could play with a variety of constraint-based options (I'm thinking a parent constraint would work well here). Or, just keyframe the animation. It's much faster that way. __________________ Danny Ngan Animator | Amaze Entertainment my website | my blog | my job
 22-12-2003, 11:33 PM #4 mtmckinley The Maya Mountain     Join Date: Aug 2002 Location: Seattle, WA Posts: 8,245 Thanks: 1 Thanked 25 Times in 25 Posts You CAN key the pivot point. Kinda hokey, but it can be done. I'll try to describe it: 1) First, open the cube's attribute editor. Assuming your cube is named pCube1, click the pCube1 tab. Open the Pivots folder and check "Display Rotate Pivot." You can also open the World Space folder. 2) Move your pivot point to the edge of the cube where you want the first rotation to happen. 3) Open Window > General Editors > Channel Control. Move the following from Unkeyable to Keyable: rotatePivotX rotatePivotY rotatePivotZ rotatePivotTranslateX rotatePivotTranslateY rotatePivotTranslateZ These will appear in your Channel Box. 4) Go ahead and key the first rotation of the cube at the edge where your pivot point currently is. When it rotates 90 degrees and it comes to the point where it will need to then change pivot location in order to roll on the next edge, go forward one frame and in the World Space folder of your cube, change the World Rotate Pivot X, Y, or Z. In my case, my cube was 16 units large, so I moved it 16 units in the X direction. You'll notice a few of the channels that you added change to indicate this movement of the pivot. Key them in the Channel Box. Now, go back one frame, put the pivot back to it's original position, and key those same channels again. 5)Step and repeat. Image - http://www.mtmckinley.net/SimplyMaya/pivot.jpg Video - http://www.mtmckinley.net/SimplyMaya/cubeRotate.avi (100k) Maya 5.0 file - http://www.mtmckinley.net/SimplyMaya/rotate.mb (45k) __________________ -Mike www.mtmckinley.net The Maya Toolbelt
 23-12-2003, 12:06 AM #5 3djoe Subscriber     Join Date: Nov 2002 Location: CT USA Posts: 566 Thanks: 0 Thanked 0 Times in 0 Posts damn Mike I will have to remember that. Good tip. I would have done it with locators.:p __________________ Never Do Today What You Can Put Off Till Tomorrow.. My New Site MayaFx.com
 23-12-2003, 12:15 AM #6 LeoGeo Registered User     Join Date: May 2002 Posts: 21 Thanks: 0 Thanked 0 Times in 0 Posts wow, thanks everyone!
 23-12-2003, 12:16 AM #7 dannyngan Registered User     Join Date: Dec 2002 Location: Seattle, WA Posts: 1,154 Thanks: 0 Thanked 1 Time in 1 Post Well, you learn something new everyday. I still like keyframing by hand. Zero setup time. __________________ Danny Ngan Animator | Amaze Entertainment my website | my blog | my job
 23-12-2003, 12:32 AM #8 kbrown Moderator     Join Date: Sep 2002 Location: London, UK Posts: 3,198 Thanks: 0 Thanked 8 Times in 8 Posts :bow: :headbang: __________________ Kari - My Website - My IMDB Do a lot, Fail a lot and Learn a lot!
 23-12-2003, 12:36 AM #9 3djoe Subscriber     Join Date: Nov 2002 Location: CT USA Posts: 566 Thanks: 0 Thanked 0 Times in 0 Posts it goes to show you there is 110 ways to get something done in maya:p __________________ Never Do Today What You Can Put Off Till Tomorrow.. My New Site MayaFx.com
 23-12-2003, 01:18 AM #10 mtmckinley The Maya Mountain     Join Date: Aug 2002 Location: Seattle, WA Posts: 8,245 Thanks: 1 Thanked 25 Times in 25 Posts Glad to help. __________________ -Mike www.mtmckinley.net The Maya Toolbelt
 23-12-2003, 08:29 AM #11 -<{ JB }>- Subscriber     Join Date: Jul 2002 Location: Western Australia Posts: 510 Thanks: 0 Thanked 0 Times in 0 Posts This is all really cool...... but how does a REAL cube roll on the floor in the first place? I mean, for a cube to "roll" it bounces from edge to edge or corner to corner - the faces don't all touch the ground one after the other. Either that or it slides instead of "rolling". I guess it could be acheived using trickery with moving internal weights. __________________ Take a glance at my Porsche 959 WIP
 29-12-2003, 12:20 AM #12 dannyngan Registered User     Join Date: Dec 2002 Location: Seattle, WA Posts: 1,154 Thanks: 0 Thanked 1 Time in 1 Post Bah, who cares about reality. A cube rolls because I make it roll. Roll, cube, roll!!! __________________ Danny Ngan Animator | Amaze Entertainment my website | my blog | my job

 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

## \$34

Month-to-month billing

## \$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.

## \$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.