Freezing transformations only work locally and I'm really surprised I can't find anything to center an object to the world.
Heres what I do to center objects;
1) Click on object
2) If the pivot point is not at the center of the object then I use "center pivot to object" or move the pivot to wherever I want the center to be.
3) "W" (move)
4) Click one of the arrows but don't actually move the object anywhere, the world coordinates appear at the bottom status bar thingy.
5) Note down all 3 XYZ coordinates and then reverse them (add negative if its a positive and vice versa)
6) Type them one at a time into the XYZ input boxes on the top tool bar and then hit enter
So is there a easier way to center something to the world like clicking on a "center to world" button?
Replies
Then you can just type 0 0 0 in the boxes and hit Enter.
If you find yourself doing this a lot, it'd be very easy to open the MEL listener after doing those commands, and paste them into a Shelf button (would basically do Center Pivot to Object, then do Absolute Move to 0 0 0).
Or just snap it to the grid (x) If your object is far away from the center of the grid, just zoom in on origo, and use MMB to snap it there.
Or what MoP said
The drop down only lets you do "absolute" and "relative", neither of which do what I want it to do (I just tried it, can someone else try it to confirm as well? Make sure when you do try it, that the object is not already at 0 0 0... so move it somewhere, and then freeze transformations and then try to center it to the world)
The "absolute" just treats the object locally and the relative seems to do nothing at all?
But thanks ivars, your snap to grid solution works fine, and is quicker than typing in 0 0 0 into 3 boxes even if it did work so yea, thanks again
Tell me if the tools is what you need
(if someone can give to me a right name for this script... it'll welcome.... XD)
>>> SAMA_Yozora_Tools_A Script <<<
And I think a good name would be "center_to_world"
Thanks for that!
Just tried it, doesnt work... It just moves it back to the local 0,0,0
That way you could mod sama.van's code and add in the xform line so it automatically goes back to world center. I should have checked what I typed first.
Steps:
1. Select your mesh,
2. Center pivot by clicking on Modify>Center Pivot.
3. Open script editor and in mel tab, paste the following: move -rpr 0 0 0 ;
4. Run the script.
https://www.youtube.com/watch?v=tfmX8nW8pKA&feature=youtu.be
The second link will restore world translation data back to objects that have been frozen.
https://www.youtube.com/watch?v=f_NOH0RCw2g&feature=youtu.be