Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to trigger animations on click event using Graph (GUI editor)? #50

Open
KnightCoder opened this issue Apr 25, 2020 · 2 comments
Open

Comments

@KnightCoder
Copy link

KnightCoder commented Apr 25, 2020

Lets say I have various takes in an animation or I've multiple @scene animations on different nodes of a model.

Using Graph (GUI), lets say I've placed multiple choice component (radio button) and I want to trigger each of these animations based on the choice of the options.

How can I do this using Graph (GUI) ?

@jagenjo
Copy link
Owner

jagenjo commented Apr 25, 2020

image

@KnightCoder
Copy link
Author

@jagenjo I think this would only set the value of the variable take. But how do I trigger the animation and its take?
I noticed that LS.PlayAnimation.play method plays animation but getAnimation and getTake gets the animation and its takes respectively.

Hence, please show using the Graph GUI:
How we can execute the play a selected take of an animation?
How can we trigger another function on start_animation and end_animation events?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants