Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

Reset Move XYZ Postion to 0

Reset Move XYZ Postion to 0

Anonymous
Not applicable
4,207 Views
3 Replies
Message 1 of 4

Reset Move XYZ Postion to 0

Anonymous
Not applicable

Hello, 

 

I'm trying to figure out how do I set a  moved object's position to 0. For instance I can reset transformed object to 0 or even Rotation to 0. I've tried Absolute Transform Mode type in but when I switch back it still shows the offset position of said object. I would like to know how can I move a object to a new position and reset it 0.

0 Likes
4,208 Views
3 Replies
Replies (3)
Message 2 of 4

drew_avis
Autodesk
Autodesk

Hi there, are you asking about doing this in MAXScript?  You could do this with the .pos property:

 

myObj = $ -- get selected object
myObj.pos = [0,0,0] -- set to 0

Hope that helps,

Drew



Drew Avis
Content Experience Designer
0 Likes
Message 3 of 4

Anonymous
Not applicable

I am afraid that script doesn't work, it just moves object back to 0 position, but I want the position my object already is in to be set as the default 0 position in if that makes sense

0 Likes
Message 4 of 4

miauuuu
Collaborator
Collaborator

If you wnat to use arbitrary object as 0 position for all other objects then set is as center of Reference Coordinate System: https://knowledge.autodesk.com/support/3ds-max/learn-explore/caas/CloudHelp/cloudhelp/2017/ENU/3DSMa...

 

If you want every selected object to have 0 pos then set reference coordinate system to Local. Now, when you select an object its position will be 0 by X, Y and Z axis and you will see this in the TTI dialog.

 

Otherwise the object will have position relative to the world 0, parent position, other obejct set as RCS, Grid, Working RCS(pivot).

https://miauu-maxscript.com/
0 Likes