hide myself at keystroke press
Hi,
i created a lens based on Segmentation Template, so that i can show a video on the background of myself ("bck via col vento" lens).
Now I'd like to hide myself whenever a keystroke is pressed, so that just background video is shown. And restore back full opacity to myself at the pressure of another keystroke.
I looked for "opacity" param or any other suitable effect but i couldn't find any. Any tip on how to obtain that?
thanks, regards
michele
Hi Michele Cremaschi
You can use the same video in bg in new object with no segmentation
So when user pressed that project will be shown above the real segmentation
I didn’t use videos before in my lenses. But I recommend u to try tweening if it works with videos it will give you a cool effects of the new layer above
Else : u can you behavior script to make the press and enable works
I hope you got that clear if not please let us know
Cheers
dear,
thanks for the suggestion. I didn't think to put a texture above camera feed, and it works.
Now I'm struggling about how to disable it by pressing a keystroke. In Snap Camera setting i set a keystroke in "trigger lens effect" field. But i found no info on documentation on how to refer to it inside the lens. I tried setting a behaviour script enabling the texture on "on custom trigger" event, but that doesn't seem the right way.
Any help?
regards
michele
I answer myself: I found in documentation that "Snap Camera allows you to trigger Tapped events via a keyboard hotkey. In the Snap Camera settings, users can configure this by assigning
Trigger Lens Effect
to a keyboard key or key combination. "So, modifying "Fullscreen" template i succeeded in enabling/disabling the image with a keystroke.
Now I uploaded the lens and I'll test the result.
regards
michele
Hi Michele Cremaschi
Im happy for you
Always think of a Problem and look for solutions
I can’t wait to see your creation
Cheers.