help with script to hide objects based on rotation
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
r = i.rotation as eulerAngles
if r.x >= 71 then
animButtonState = true
i.visibility = true
i.visibility = false
animButtonState = false
but it didn't work will for me, and I couldn't figure what's wrong .