Define 'Something' there are lots of things you can select in max. for nodes which i guess your talking about. To work on selected objects you use the 'selection' collection so That code will loop through the whole selection, pulling out a node at a time and letting you work with it. If you want to tell if a node is in the…
I have a script I wrote that has a function that does that. "Pivot to World Zero" http://dl.dropbox.com/u/2336353/SceneClean.ms Feel free to rip the code out and purpose it however you need, or run the script once from anywhere and then you'll find it under Customize UI > Category: "VigTools"
the selection is empty so nothing happens. selection allways exists so it wont throw and error. So far as updating a label when the selection changes, You can add a timer to your rollout. in its tick event put the update code. it helps to check for a change before updating the UI. if you dont you get some flicker
@r_fletch_r: Needed to change it to node.max.z - node.min.z otherwise it must stand on the ground for it to get it´s real height. I finally got some things working on my own, but there are some things i don´t understand and i can´t find a solution for it. Is it possible to determine if something was selected or not? And is…
search for nodeEventCallbacks. Have you looked into Epheres C# SDK for max, its a bit of an easy path to go down than the C++ route, especially considering the plugins refresh with max without any need to restart the app.