Maya Training

Introduction to Hard Surface Modeling

Maya Training

Interiors and Furniture Vol 1 & 2 - Modeling & Cloth

Maya Training

Shading, Lighting and Rendering the Bedroom in MR

Maya Training

Robot volume one - Modeling with animation in mind

Maya Training

Spach-Alspaugh House the complete courseware

Maya Training

Burt The Cartoon Dinosaur Vol 01 - Modeling

New Maya Training

Robot Volume 02 - Hybrid Rigging
You are here > Home > SimplyMaya Community Forums
Loading

Welcome to Simply Maya

Please Sign in or Sign up for an account

Member Login

Lost your password?

Not a member yet? Sign Up!

Old 22-12-2003, 09:10 PM   #1
LeoGeo
Registered User
 
LeoGeo's Avatar
 
Join Date: May 2002
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Question 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.

LeoGeo is offline   Reply With Quote
Old 22-12-2003, 09:28 PM   #2
3djoe
Subscriber
 
3djoe's Avatar
 
Join Date: Nov 2002
Location: CT USA
Posts: 566
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
3djoe is offline   Reply With Quote
Old 22-12-2003, 10:22 PM   #3
dannyngan
Registered User
 
dannyngan's Avatar
 
Join Date: Dec 2002
Location: Seattle, WA
Posts: 1,154
Thanks: 0
Thanked 1 Time in 1 Post
Default

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
dannyngan is offline   Reply With Quote
Old 23-12-2003, 12:33 AM   #4
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

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
mtmckinley is offline   Reply With Quote
Old 23-12-2003, 01:06 AM   #5
3djoe
Subscriber
 
3djoe's Avatar
 
Join Date: Nov 2002
Location: CT USA
Posts: 566
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
3djoe is offline   Reply With Quote
Old 23-12-2003, 01:15 AM   #6
LeoGeo
Registered User
 
LeoGeo's Avatar
 
Join Date: May 2002
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default

wow, thanks everyone!
LeoGeo is offline   Reply With Quote
Old 23-12-2003, 01:16 AM   #7
dannyngan
Registered User
 
dannyngan's Avatar
 
Join Date: Dec 2002
Location: Seattle, WA
Posts: 1,154
Thanks: 0
Thanked 1 Time in 1 Post
Default

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
dannyngan is offline   Reply With Quote
Old 23-12-2003, 01:32 AM   #8
kbrown
Moderator
 
kbrown's Avatar
 
Join Date: Sep 2002
Location: London, UK
Posts: 3,198
Thanks: 0
Thanked 8 Times in 8 Posts
Default

:bow: :headbang:
__________________
Kari
- My Website
- My IMDB

Do a lot, Fail a lot and Learn a lot!
kbrown is offline   Reply With Quote
Old 23-12-2003, 01:36 AM   #9
3djoe
Subscriber
 
3djoe's Avatar
 
Join Date: Nov 2002
Location: CT USA
Posts: 566
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
3djoe is offline   Reply With Quote
Old 23-12-2003, 02:18 AM   #10
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

Glad to help.
__________________
-Mike
www.mtmckinley.net
The Maya Toolbelt
mtmckinley is offline   Reply With Quote
Old 23-12-2003, 09:29 AM   #11
-<{ JB }>-
Subscriber
 
-<{ JB }>-'s Avatar
 
Join Date: Jul 2002
Location: Western Australia
Posts: 510
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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 <a href="http://forums.simplymaya.com/showthread.php?s=&threadid=9428"><b>Porsche 959</b></a> WIP
-<{ JB }>- is offline   Reply With Quote
Old 29-12-2003, 01:20 AM   #12
dannyngan
Registered User
 
dannyngan's Avatar
 
Join Date: Dec 2002
Location: Seattle, WA
Posts: 1,154
Thanks: 0
Thanked 1 Time in 1 Post
Default

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
dannyngan is offline   Reply With Quote

A little bit about who we are
Links you might find useful
Catch up with SimplyMaya
SimplyMaya specialises in Maya tutorials. We offer over 1,000 individual Maya training videos, ranging from basic Maya tutorials through to intermediate Maya tutorials. Our tutorials are created by instructors with industry experience and are designed to get you up and running in Maya quickly without making it seem like hard work.

Copyright © 1999-2015 SimplyMaya - vBulletin® Copyright © 2000-2015, Jelsoft Enterprises Ltd.