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: 

pressing View Align in my UVW Mapping modifier with mascript. Can I do?

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
suecke
478 Views, 2 Replies

pressing View Align in my UVW Mapping modifier with mascript. Can I do?

Hello,

I am trying to make a button for my script that aligns my uvw mapping gizmo everytime I press it.

If I wasnt using maxscript I would just click the "View Align" under "Alignment:" under my UVW mapping parameters.

Can I do the same in maxscript? The macro recorder doesnt give me any hints.

Can I even do this?

I do not want the gizmo to continually follow my view so dont really want to use any lookat constraints provided that was even a possible

thank you.

2 REPLIES 2
Message 2 of 3
Swordslayer
in reply to: suecke

Provided it's the active modifier and command panel is in modify mode:

 

UIAccessor.pressButton (windows.getChildHWND (windows.getChildHWND #max "Command Panel")[1] "View Align")[1]

 

Message 3 of 3
suecke
in reply to: Swordslayer

Great! Thank you.

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

Post to forums  

Autodesk Design & Make Report