help with script to hide objects based on rotation
hi there
I don't have much knowledge in scripting, but in my current project i needed
a script that set the object visibility key to 0 when it's rotation more than 86 - I have more than 1043 object by the way :) - anyway ....
I did my 1st ever script - which i think is a crap :) - and one of my friends helped me a little and I reached this stage :
for i in selection do
(slidertime=slidertime+1
r = i.rotation as eulerAngles
if r.x >= 71 then
(
animButtonState = true
slidertime=slidertime-1
i.visibility = true
slidertime=slidertime+1
i.visibility = false
animButtonState = false
)
)
but it didn't work will for me, and I couldn't figure what's wrong .
Comments
this should do
btw please use the
[code]
[/code] bracketsRaphael Steves
WOW all in one line :) thank
WOW
all in one line :)
thank you soooooooooooooooooooooooooooooo much .