Cancel DelayedCallbackEvent?

  • Hey lisichka ggg

    If i understand you right this my help.

    2 seconds delay if user switches to front camera :

    ( The response type and the action is up on to what you want to do )

     

    If user switches within 2 seconds to Back camera :

    Hopefully this works for you, as i dont know what event you are doing. In this case i just did it with an Screen Image.

     

    Cheers,

    [SirQu3ntin]

    Comment actions Permalink
  • cuzimqu3ntin
    I've tried this script. 
    What will happen if I front event fire and user switches to back camera? And I would like to use not pre made script for this task.

    thanks

    Comment actions Permalink
  • Ok nice for me its easier to work with the behaviour script. But if you prefer not pre made script than someone else has of this community has an solution with custom script.

    Happy Creating!

    Cheers,
    SirQu3ntin

    Comment actions Permalink
  • lisichka ggg I tried putting the following code into a script and set the script to fire when "Switch to Front Camera" in the inspector and the event would be interrupted if I switched between cameras before the two seconds were up. Is this what you are trying to achieve?

    var delayedEvent = script.createEvent("DelayedCallbackEvent");
    delayedEvent.bind(function(eventData)
    {
    print("delay is over");
    });

    //set event to occur after 2 second delay
    delayedEvent.reset(2);

     

    Comment actions Permalink
  • Martin Sanchez

    Yes I use the same stuff. But, what will happen if during 2 sec user will switch back to rear camera? Delayed calback will still fire! This is the thing I want avoid.

    Comment actions Permalink
  • you can change the it from video to a picture by clicking  "person 1 " at the top. At least thats how it works for Windows link. Should be hopefully the same for mac. Otherwise youo can just upload your own preview.

    Comment actions Permalink
Have a comment?

Please sign in to leave a comment.

We're here to help! We just need a little bit of information...

What system are you using?

Have you downloaded the latest version of Lens Studio?

Please download the latest version of Lens Studio. If you still run into this issue, please come back and report it!

Is this issue causing Lens Studio to crash?

What system do you run Lens Studio on?

Version

Graphics

Follow the next steps to help us solve your issue:

  • Copy and paste this text into your TerminalCommand Window
    open ~/Library/Preferences/Snap/Lens\ Studio/ %LOCALAPPDATA%\Snap\Lens Studio Copy Text
  • Press ReturnEnter to run the command. The Lens Studio folder will automatically open
  • Prepare to upload your files: zip the "Log" Folder by right-clicking and choosing "compress."
    Locate the Log.txt file right above it.

    Attach a screenshot of the issue:

Name:

Email:

What is this most relevant to?

Please enter a brief description of your issue:

Thanks for submitting this issue.

Unfortunately, it's likely due to the operating system or hardware you're using – since they don't meet the system requirements for Lens Studio.

Still, we hear you loud and clear, and are logging the issue in case there's ever a workaround we can provide!

Minimum Requirements

Operating System: Windows 10 (64 bit); MacOS 10.11+

Hardware: Minimum of Intel Core i3 2.5Ghz or AMD Phenom II 2.6Ghz with 4 GB RAM; Intel HD Graphics 4000 / Nvidia GeForce 710 / AMD Radeon HD 6450 or better; screen resolution of 1280x768 or higher

We'll try to resolve this issue as soon as possible. Thanks for letting us know about it!

Keep an eye out for a followup email from us. We may have a couple more questions for you, or we might already have a solution to offer.

Happy creating!