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

Add support for animations #17

Open
randreu28 opened this issue May 15, 2023 · 1 comment
Open

Add support for animations #17

randreu28 opened this issue May 15, 2023 · 1 comment

Comments

@randreu28
Copy link

randreu28 commented May 15, 2023

It would be nice to support animations when exporting a spline scene, like so:

const { nodes, materials ,animations} = useSpline("https://your-url.spline.com");

useEffect(()=>{
animations.animationName.play();
},[})

Or at least some sort of documentation to handle the animations on your own!

References of similar results: https://github.com/pmndrs/drei#useanimations

@guerragiuseppe1507
Copy link

image

You cant print nodes in console. There is an element called animation imported from Spline scene

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