PDA

View Full Version : world local rotation relationship setup


keylock
08-24-2004, 02:44 PM
I'm having trouble animating a nail rolling on the ground.

I modelled the nail in the upright postion (standing on the sharp edge, head up). I then rotated the nail so that it's laying down on the ground. However, this causes the local rotation axes to no longer be aligned to the world axes.

This is giving me problems. I want the nail to spin (rotate along the world y axis) but at the same time roll along its local y axis (which is pointing down the nail, from the head to the sharp edge). By spinning the nail along its local y axis the rx, ry and rz channels all get affected. I want to setup a relationship between the world y rotation and the local y rotation, so that I only need to animate the nail spinning around the world y axis and the roll (or spin along the local y) will adjust appropiately.

Can anybody help me out?

acidream
08-24-2004, 11:59 PM
Sound's to me like you could group the nail and use set driven keys to drive the local rotation of the nail with the groups world rotation.

keylock
08-28-2004, 02:15 AM
Thanks for the tip Acidream. I did exactly what you said (grouping the nail to itself and use set driven keys to make the groups world rotation drive the local rotation of the nail). This solution works, but I am not able to accurately rotate the local rotation axes.

By this I mean, I have to eyeball this relationship (in the camera views or graph editor). How can I get access to the local rotation axes numerically? In the channel box/graph editor you only have access to the world rotateX, rotateY and rotateZ. And is there anyway I can set this up using expressions?

For instance if the group rotateY rotates a full 360 degrees, I want the nail local rotateY to spin around a few full revolutions (based on the length 2 * 3.1425 * the length of the nail).

Thanks in advance.

acidream
08-29-2004, 08:10 AM
Sorry for the delay in my reply, but I made a nail of my own, and I was able to use a couple groups, and an expression to do what I believe you are trying to do. Although, I think a set driven key would work instead of the expression, It worked out alot easier that way. I'll attach a link to the file, so you can check it out.

nail.mb (http://pixel-science.com/CGtalk/nail.mb)

scott

keylock
08-31-2004, 02:34 PM
Hi Acidream. Thanks for taking the time to help me out. I really appreciate it. I tried checking your file out. However I get an error stating that I cannot open the file because the version isn't compatible. I'm using Maya 5.0, and I believe your file is version 6.0. If it isn't too much trouble could you save the file in Maya 5.0 format?

Also, I checked out your website and am really amazed with the work you have done. Is it ok if I send you an email with some questions I have? If you are too busy that's ok.

CGTalk Moderation
01-18-2006, 09:00 PM
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.