Per object selection event

The event scan for a property hosted by the selected objects, and execute any jscript code set in it.

Scripting Language: 

Script Installation Instructions: 

Just copy the script in your plugin folder, then run the command from the property menu. It will add a Custom property with a code field. You can use "selected" to return the selected object and it's working with multi selection.

XSI Minimum Version Compatibility: 

Script File: