[Closed] Problems with script operator
hi guys.
I’ve some problems with a script operator.
http://aespid.com/Perso/MS/PF_MS_01/PF_MS_01.html
first: I’ve to move my script op, otherwise it will not move my lights
Second: when i play back my animation or delete my particles, it will not move all the lights.
i made a test with one of my friends and, he had the same problem, he had to move tho script op.
But on his workstation, if the particles are gone, all the lights move back at point [-100000,-100000,-100000].
i tried to add my op into the event by using
ev.insertAction myop 1
instead of
ev.appendAction myop
but still the same problem, i ve to move it by hand, otherwise it’s not working
From your vid, I didn’t understand how the lights where linked to the partical flow. It appears to be a global Array you are defining outside of PF? Event2_Arr ?
But right at the Init of your script event you’re setting a posiiton of the array? to a Point3 value? I’m not understanding the Init function.
Perhaps collect that array in the init function of the Script Op.
global Event2_Arr = ($‘Event2_Light_*’ as array)
To insure the Scr Op has a valid array of lights to work with…