Multiple Billboard Animations in a Row
Hello!
I have a question about Lens Studio.
I really want to have multiple Billboard animations in a row.
Example:
First Tap: Showing 2D Billboard Animation and ends.
Second Tap: Showing 2D Billboard Animation and ends.
Third: Tap: Showing 2D Billboard Animation and ends.
There is Lens that has this already, its called the ''Disappear Lens"
I can explain it, when you open the Lens in Snapchat you see a picture of some text, when you Tap on your screen, another picture with information will follow saying if you tap twice the Animation will start. When you Tap again on your screen. You don't see anything and you have time to find the right position and if you Tap again. The Lens will start.
How do you make something like this?
hey Julien
check out this article
https://lensstudio.zendesk.com/hc/en-us/community/posts/115020451643-Make-Things-Change-on-Tap?page=1#community_comment_360000037943
it will may help with. the tap going through the "array" re the "right position" look at this
https://lensstudio.snapchat.com/guides/general/tracking-modes/
Hi Julien! Patrick is right, looping through an array is the best way to do this. I created a script for you that should do what you want. It's modified from another post I posted re: tapping billboards to support and array of billboards and sounds.
https://lensstudio.zendesk.com/hc/en-us/community/posts/360000035023-Tap-to-Trigger-Billboard-and-Sound
It supports a variable array so you can add as many as you'd like!
Add the script to an empty object running on the "Initialized" event. Then, fill the arrays with what you want to toggle through on tap.
Hey Travis,
The script is working but the values are kinda messed up.
Maybe you made a mistake. The script is taking Value 1 first then Value 0 and then Value 2?
Could you fix that in your script?
EDIT:
Could you maybe also post a script that does the same but not using billboard but Component.PostEffectVisual please?
Thank you
Hi Julien, rewrote to fix the starting problem. The fix was easy, just initialize currIndex to -1. Then, I made it support general SceneObjects instead of billboard specifically. Basically, you can now feed anything into the array including post effect objects.
Thank you very much!