Announcements
Due to scheduled maintenance, the Autodesk Community will be inaccessible from 10:00PM PDT on Oct 16th for approximately 1 hour. We appreciate your patience during this time.
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

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
kenc
251 Views, 2 Replies

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

2 REPLIES 2
Message 2 of 3
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.

 

 

Message 3 of 3
kenc
in reply to: kenc

@denisT.MaxDoctor it works perfectly. Thank you.

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

Post to forums  

Autodesk Design & Make Report