View Full Version : Zero transfom matrix?
Hi folks
I got an easy one for ya. Say I make a point or dummy object. Then I move it and it has a new non-zero xyz translation values.
How can I set the xyz values to zero and keep the object in the same place?
In Maya this is called freezing the transforms.
This should be an easy one I just can’t find the button :D
Thanks
|
|
LFShade
06-11-2002, 05:09 PM
In max, it's called "reset transform". It's on the heirarchy panel.
OK, I select an object go to Hierarchy panel,
In the Adjust Transform->Reset box and hit Transform.
Nothing happens?
In the menu at the bottom the xyz values don’t change
I also looked at the xyz in Track view same thigh.
am I missing something?
ok I just looked in the docs.
In the Utility panel Reset XForm
Ahh This doesn’t seem to work ether?
My object is an editable poly, is this the problem.
does the object have to be set a cretin way in order to be able to reset the transform?
LFShade
06-11-2002, 05:54 PM
As I think about it, I'm not sure this can be done. Transforms are evaluated in parent space, and your point's parent is the world. I think it will always show a non-zero value as long as it isn't linked to anything else (unless, of course, you place it at world 0,0,0). In order to do what you want, you'll have to link the point to another object and align it's position to the other object. Make sense?
Yes, I see, I was thinking that to
But hears the problem.
Say I make a point object and link an end effector from an IK
chain to it.
So I can animate the point object not the end effector.
I need to have the point object xyz at 0,0,0 for animation.
So when I key the point and move it, I can make a "tidy" script to bring the point back to 0,0,0.
Kind of a home made go to BindPose. have you worked in maya any?
There has to be a way to do this in max. This is what reset transfom means right?
LFShade
06-11-2002, 06:39 PM
There's a function on the animation RCMenu called "Freeze Transform", and an accompanying "Zero Transform". These do something like what you're after, but I haven't used them much and I don't know how well they perform. All I know is that Freeze Transform layers your controllers using list controllers, and that it can blow out keyframes if you've already begun animating. Give it a try, though.
I'm afraid that without Max in front of me at the moment it's difficult to help you out with this. You may want to dig around over on www.scriptspot.com, you may find something of value over there.
Cool
Thanks LFShade
Ill give it a shot.
Fnkymnky
06-11-2002, 07:57 PM
Not sure if this is exactly what you want, but...
1.) Create point/dummy.
2.) Move point/dummy to desired location.
3.) On the Hierarchy tab, make sure "Pivot" is selected (out of the three buttons at the top).
4.) Under "Adjust Pivot", rollout "Move/Rotate/Scale", and click the "Affect Pivot Only" button.
5.) In the type in fields at the bottom of the UI, type in 0 for all axes.
6.) Back in Hierarchy panel, turn off "Affect Pivot Only".
That moves the pivot point back to the origin, causing rotations, scales, and the like to occur around it; probably not what you're going for, but it's the best I've got. Sorry. :shrug:
Hi Fnkymnky
heh that’s very clever. In a sense that would set the values to 0 but man try to animate a character with 20 point controllers whose transforms are all stuck at the world origin, crap what a mind bender!
I think this is going to take some more doc digging. I think this works in maya because maya and max handle objects in different ways at a very low level in the scene graph. So Ill probably root out the answers in maya and then figure how to rig it up in max.
unless there is a maya to max to hell and back sort of guru out there that knows all : )
Thanks for your help folks!
Hey LFShade
Can you tell me where the RCMenu is? I can't find it and '"Zero Transform" sound like it could be just what im looking for.
If it blows out the keys that would make perfect scene for this sort of tool.
Reality3D
06-11-2002, 09:07 PM
If you discover something, keep us informed :)
LFShade
06-11-2002, 09:47 PM
I was referring to the Right Click menu. I believe the animation one is alt+RMB (that's right-mouse-button).
HA :buttrock:
LFShade, you ROCK
It looks like this is perhaps how max handles this workflow
TransformToZero and FreezeTransform work in conjunction.
First you FreezeTransform on an object look in trackview there is a new set of attributes for P/R/S called Zero Pos XYZ and Zero Euler XYZ along with a frozen Position attribute, which is of curse the world value. These new attributes set xyz to 0,0,0 Joy.
Now you can translate the objects and then hit TransformToZero and SNAP your object snaps back to xyz 0,0,0.
This is what I need for the script.
It also helps when editing animcurves etc.
Thanks again LFShade
CGTalk Moderation
01-13-2006, 08:00 AM
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.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.