Hi guys, by default after importing 3d model with animation from another software (like Blender) it is loop and there is no direct way to make any modifications. How it could be resolved/controlled ? I have checked documentation Lens Studio, but most info for old versions, from 5 it is different. How to make it with scripting/behavior another ways ?
#How to stop the loop of 3d model animation created in Blender?
10 messages · Page 1 of 1 (latest)
You would control the animation player component like this: https://developers.snap.com/lens-studio/api/lens-scripting/classes/Built-In.AnimationPlayer.html
Documentation for Lens Scripting API
so you'd import the animation player component then can run one of the play functions, for instance just to play a clip simply:
//@input Component.AnimationPlayer animationPlayer
script.animationPlayer.play("clipName")
also uncheck autoplay on the animation player itself of course
Behavior script also supports it like so:
Thank you so much!) I will check and try it right now))