Execute code on new object selection?

I'm trying to find a way to make my maxscript run a set of code when the user makes a new object selection.

-----
The idea is when a user makes a new selection, elements of my GUI are updated to reflect the properties of the currently selected objects.

The only other idea I have is to somehow test if the previous selection == the current selection, every x seconds, but that could easily bog down system resources when thousands of objects are selected.

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
crazyosachou's picture

hi, u have two

hi,
u have two solution:
1st: u could change the logic of u'r script, Instead u script update when the object is selected, u can creat a dialBox with picker object, and when user pick an object, the script is automatically updated.(care, if the new object selected haven't the same properties of u'r script, u'll get an error)

2nd: if u'r Script isn't too much complecated, u can assign to a neutral object (Dummy for example), a script-controller to one of his properties, and make u'r script there. But the script will be updated only when slidertime move.(i think there's a way to make it updated all the time, but u should ask about it)

Good Luck!

learn more,learn as fast as u can, coz u can be not able to learn more tommorow!!

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.