Automatic Post Effect Animation
Hey, I'm having trouble with changing the post effect texture using the behavior helper script. The texture is changing but it doesn't repeat. Is there any way I can have a post effect change every .30 seconds and keep repeating? Also, I have it set to when you turn on the lens so you don't have to keep tapping to change the texture. I want the script to keep looping. Thanks! (Sorry not very technical with scripting)
what exactly are you using for changing the texture? I could help you edit the script to add loop into it so it returns to the first texture and repeats
Just tell me the script name but if you don't know it just copy and paste it
Hi Beachben88,
You can do this with the Behavior script by having one behavior script triggering a custom trigger, and then having two more behavior script listening to that trigger. One behavior script will trigger the next behavior script (which will trigger two more behavior script), and the other one changing the texture.
But, like Itzjustsamuel mentioned, you can probably do this a little bit easier by using a script. We can modify the script from https://support.lensstudio.snapchat.com/hc/en-us/community/posts/115020451643-Make-Things-Change-on-Tap?page=2#comments , but rather than changing on Tap, you can have it change using a delayed callback.
Let me know if you need any clarification!
Thanks,
Jonathan
Hey Jonathan Solichin I'm using this script to get the tap to change behavior, I'm switching between different scripts but the problem is,it's not looping. Basically, it gets stuck on the last script and I have to reset the lens to start over from the first script. I'd appreciate an assist here :)
Hi Yajan!
Hmm that seems to work for me. Make sure you're not disabling the controller itself!
Also in case you haven't seen it yet, take a look at the https://lensstudio.snapchat.com/templates/interactive/behavior/ template to see an example of enabling and disabling objects on tap!
Let me know if you need any clarification.
Cheers,
Jonathan
Keep up the good work