trigger animation in Lua

Questions and information about using Lua scripting with Storyboard

Moderator: jamiev

trigger animation in Lua

Postby Ray » Wed Jan 25, 2017 11:17 am

Hi,

I am using gre.animation_trigger("animation_name") to play an animation, then have a layer on/off action for the following step. However, the animation is not shown in simulation cause the layer on/off action is triggered immediately before the animation is finished.

Is there any way to halt the system for 1 or 2 seconds? So the layer on/off can be triggered after the animation duration. Thank you.
Ray
 
Posts: 35
Joined: Wed Apr 06, 2016 3:32 pm

Re: trigger animation in Lua

Postby MikeMarchand » Wed Jan 25, 2017 11:40 am

Hi Ray,

If you want the layer on/off action to occur after the animation has finished then you could trigger the layer on/off action on the event 'gre.animate.complete.animation_name'.

Cheers,
Mike
MikeMarchand
 
Posts: 12
Joined: Wed Jan 21, 2015 3:33 pm


Return to Lua Scripting

Who is online

Users browsing this forum: No registered users and 1 guest

cron