danielkenobi
01-19-2005, 05:07 PM
Hi guys I have one newbe question that I havent find out yet.
I am triying to animate the visivility of similar objects base on their relative distance from a dummy, Is just I dont know were to execute the script, I mean I can put it on each object, seting the visibility constraint to script, and write a specific script for each object, but due there are several objects that need this I dont find this as an elegant way of solving the problem. the other way I figure out was to write a script that did it with a for (that is more elegant if you know what I mean), but the question is, is there a way that this script execute every frame? where do I put it? If I execut it on the listener it will only execute in one frame, another way would be using animate on and creating keys with the for, but unfortunately that doesnt convence me because every time I change the animation of the dummy I would have to execute the script again. so Any sugestions?
I am triying to animate the visivility of similar objects base on their relative distance from a dummy, Is just I dont know were to execute the script, I mean I can put it on each object, seting the visibility constraint to script, and write a specific script for each object, but due there are several objects that need this I dont find this as an elegant way of solving the problem. the other way I figure out was to write a script that did it with a for (that is more elegant if you know what I mean), but the question is, is there a way that this script execute every frame? where do I put it? If I execut it on the listener it will only execute in one frame, another way would be using animate on and creating keys with the for, but unfortunately that doesnt convence me because every time I change the animation of the dummy I would have to execute the script again. so Any sugestions?
