Applying post effects to the Front Camera only
Hi everyone,
I'm a total newbie to lens studio and I'm trying to create a lens for a uni project.
So far, my lens does exactly what I want it to do (somehow through trial and error!) - When tapped, the entire camera view turns upside down, including the text, I did this using a script and billboard.
To push it even further, I want to add a post effect which only applies to the 'untapped' screen. So my 'normal' screen will be black and white and when tapped, the screen returns to just normal colour.
Is this at all possible? I'm guessing that I will need to use a script but I'm not too sure what to write.
Thanks!
Hi Lauren!
That's so cool that you are using Lens Studio for a uni project.
Take a look at https://lensstudio.snapchat.com/guides/scripting/behavior-script/ which will allow you to enable and disable objects based on some event.
Once you're imported the script, you can create a new object and put the BehaviorScript on that object. Then, you can do something like the following:
Now, when you tap the screen your post effect should turn on and off!
Let me know if you need any clarification. Can't wait to see what you come up with :)
Cheers,
Jon
Hi Jon,
Thanks so much for your help, that worked perfectly!