View Single Post
Old 12-10-2015, 11:22 AM
lklab lklab is offline
Join Date: Mar 2015
Posts: 20
yes, the waittime is likely what is causing the stutter, but without it the loop will continuously loop and either constantly adds animations to the queue (viz.addAction) or rapidly changes the animation without waiting for the current animation to end (.state(x)), which may drain resources.

the reason i didnt use tree.state(x) is because the animation numbers are not within the same range. But I could just choose a random number from a list and that could work too.

I tried to read into viz.pathevent, but that seems to work only for moving an object through a path, I just want to play a random animation built into the avatar.

So what I need is a loop that will finish an animation before playing the next one, but without adding 9 million items to the queue of animations. How would I have viz.pathevent know when the animation finished?
Reply With Quote