McBain
09-21-2005, 01:08 AM
I want to run a script when an object moves, a camera to be exact. I want to show and hide different LOD models depending on the distance to the object.
I tried:
scriptJob -attributeChange persp.translate "myscript"
but that only changes whenever I'm done moving the camera by lifting the mouse button. I want it to move whenever the distance to the selected object changes. Is scriptJob the right approach or is there a better way to do this?
Thanks in advance!
I tried:
scriptJob -attributeChange persp.translate "myscript"
but that only changes whenever I'm done moving the camera by lifting the mouse button. I want it to move whenever the distance to the selected object changes. Is scriptJob the right approach or is there a better way to do this?
Thanks in advance!
