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