PDA

View Full Version : running Lscript by selecting object ?



Skywatcher_NT
10-25-2010, 08:58 AM
Is it possible to run an Lscript by clicking ( selecting ) an object
in the scene ?

walfridson
10-25-2010, 09:15 AM
You need a lscript of type master that will catch whenever you trigger selectitem command - then launch your special script.

Skywatcher_NT
10-25-2010, 09:33 AM
But then every time you select an object the master script is executed to check if the right object is selected and then run the intended script.
Is that the way to do it ?
Or is there a way to launch a script when a specific object is selected ?
Stupid question maybe ? (I'm not a scripter ).

walfridson
10-25-2010, 12:35 PM
Hm in that case you need to check in code(in the master script) the name or filename of the object.