How to Trigger Animation from a Hooked Lua Function in Storyboard?

Hi everyone,

I'm trying to trigger an animation using Lua in Storyboard. I have a function hooked up (e.g., to a button press), and I want the animation to start when that function is called.

I’ve already created the animation in the Storyboard Designer. Now I just need to know how to call or trigger it from Lua.

Could someone guide me on how to properly trigger the animation from within a Lua function?

Thanks in advance!

0

Comments

2 comments

  • How to animate a hollow circle moving along a circular path in Crank Storyboard?

    Hi everyone,

    I'm working on a UI , and I’d like to create an animation where a hollow circle (like a ring or stroke) moves in a circular motion — essentially following a circular path around a center point.

    What I'm trying to achieve:

    • A hollow circle graphic moves around a fixed circular path.

    • It should loop continuously (like a loading or scanning animation).

    • Ideally, it should use Storyboard’s animation system or Lua control.

    • If possible, could someone please share a basic sample or snippet to get started? That would be super helpful!

    Thanks so much in advance!

     

     

    0
  • Hi Sahil,

    To trigger the animation in lua, you should use the gre.animation_trigger function.
    https://support.cranksoftware.com/hc/en-us/articles/360056944652-gre-animation-trigger

    For the hollow circle animation, you should have a look at the 'Arc' render extension, you can adjust the angles on this to achieve the circular motion. Then you can place a hollow circle image above.

    Thanks,
    Jake

    0

Please sign in to leave a comment.

Didn't find what you were looking for?

New post