Community
3ds Max Programming
Welcome to Autodesk’s 3ds Max Forums. Share your knowledge, ask questions, and explore popular 3ds Max SDK, Maxscript and Python topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Center UVW map gizmo on object center

1 REPLY 1
Reply
Message 1 of 2
kenc
59 Views, 1 Reply

Center UVW map gizmo on object center

I would like a way to script the Align of UVW map to center of an object like in the UVW map dialog

kenc_0-1723068831943.png

TIA

kenc

1 REPLY 1
Message 2 of 2
denisT.MaxDoctor
in reply to: kenc

 

tm = $.modifiers[uvwmap].Gizmo.transform
tm.pos = $.center * (getModContextTM $ $.modifiers[uvwmap]) * (inverse $.objecttransform)
$.modifiers[uvwmap].Gizmo.transform = tm

I hope I didn't forget or mix up anything.

 

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Technology Administrators


Autodesk Design & Make Report