PDA

View Full Version : Pivot orientation without moving verrtexes


shenmue
06-19-2008, 12:30 PM
Hi

I have been trying for a while and I donīt know how to do it:
I have a joint and a box.I just want to orient the pivot of the box like the jointīs pivot,without move the vertexes of the box.
:shrug:

NaughtyNathan
06-19-2008, 12:54 PM
Maya has a function to rotate an object's local pivot, but it doesn't really rotate it, it simply adds an axis rotation offset that's accessible by some things but not others (i.e. scale), which kinda makes it pretty useless in my opinion...

It may do what you want though... go into component mode and RMB-click on the ? component icon on your main toolbar. You can choose "Local Rotation Axes" and rotate the pivot like this.

if you REALLY want to rotate the object's real pivot there's no way I know of, however I came up with a neat trick that works well on polygon objects. Simply store all the existing vertex worldspace positions, then ROTATE the WHOLE object to your desired pivot rotation, then move all it's vertices back to their original world positions. :D

You can download a MEL script that does this from my old website:
http://www.naughtynathan.supanet.com/data/mel.htm (http://www.naughtynathan.supanet.com/data/mel.htm)

it's called "rotatePivotViaObject.mel"
:nathaN

shenmue
06-19-2008, 01:30 PM
Thank you very very much man.I was trying to something like you said,orienting the object and the creating cluster on vertexes to restore their position but I felt it was to weird and I stoped trying,because I though it would be a "sofisticated" way.
Any way,I going to check your script.Thanks

CGTalk Moderation
06-19-2008, 01:30 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.