ScriptSpot

Forum topic · General Scripting

Pos & Rot Type in - At the same time!

By boudini · 2017-08-30

Description

Hi, I'm often typing in values for position and rotation, and going through objects to check for skewed coordinates.
So far I can't seem to get 3ds max to show me the transforms and rotations at the same time, only by switching the tool to move or rotate.

I'd like to condense the functions in the red box in the attached picture into a neat little dialogue.

I'm sure I can figure out how to display the values: $.pos, $.rotation.x_rotation etc.

But I don't know how to update this info dynamically and I also don't know how to type in to edit these values.

Any help or tips would be greatly appreciated!

Thanks
Sean

Attachments
Comments (1)

Add a selection change handler

TsveTan · 2017-08-31

If you want to update the ui when select an object register a new selection eventhandler , typicaly it is added with "when" construction.
It will be something like:
When selection changed obj ( do something - refresh the ui textboxes ).
See Maxscript's reference for examples, when you close your dialog, unregister this handler.