Notifications
Clear all
[Closed] Change wirecolor in Script controller
Aug 09, 2013 1:42 pm
i want to create a script controller for changing wire color of another object , for example i have a box and a sphere then check if position of box is greater than 20 change wire color of sphere to red .
is there any solution for this ?
thank u
2 Replies
Aug 09, 2013 1:42 pm
Add a script controller on scale controller on the same object
Create a variabled called “self” in the script controller and select “Assign Node”. In the object browser, pick the same object and in the expression write:
if self.pos.z > 20 then self.wirecolor = red else self.wirecolor = green
[1, 1, 1]
Keep in mind that these changes are not visible when you submit for render an animation sequence.
1 Reply