intermediate guide on how to work with the API available?
Hey everyone,
can you link me to further tutorials on javascript in Lens studio that go beyond the scope covered on the lens studio site? I have still understanding issues on how to access specific objects in my project and their properties by script.
I am not a programmer, but have the basic understanding of scripting languages like php or python..
maybe you could also briefly explain how to red the API reference and how to work with it on an easy example like accessing a 2D Animation Texture...?
thanks for the help people.
Cheers eL
Hi el Be!
I'd suggest checking out two things that require no scripting but allow you to create interactions / programatic animations.
First, it is the full screen template which allows you to chain together different states of a Lens:
https://lensstudio.snapchat.com/templates/world/fullscreen-template/
Next, the tween system allow you to make simple programatic animations just using the inspector:
https://lensstudio.snapchat.com/guides/scripting/tweening/
Specifically for your 2D animation questions, check here under the Scripting Animation Playback section:
https://lensstudio.snapchat.com/guides/2d/2d-animation/
Thanks Travis,
but that is what I´ve gone through already - now I need more custom control, that´s why I am looking for more in depth scripting guides....
Is there an additional hint where I could find more "how-To" on your Snapchat API ?
Thanks L.
Any specific lenses, scripts or ideas you'd like to know how to make? I've been planning some new tutorials for lens studio on my YouTube.
hey - no it´s my general learning the API. Once I understand the underlying approach, it might be easier to devellop new lenses...
Hey El, definitely read through the Scripting Overview and Example:
https://lensstudio.snapchat.com/guides/scripting/scripting-overview/
https://lensstudio.snapchat.com/guides/scripting/scripting-example/
Then, with what you learn, I'd recommend trying to modify somethings on an object's Transform. This will allow you to move, scale and rotate an object. Great place to start playing around and a pretty common scripting workflow:
https://lensstudio.snapchat.com/api/classes/SceneObject/
https://lensstudio.snapchat.com/api/classes/Transform/