We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

Screenshot with some objects.

Home Forums Puzzles Screenshot with some objects.

Tagged: 

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #47784
    karonte
    Customer

    Good evening, is there a good method to save a screenshot “after” hiding some unwanted objects or elements, and then show them again?
    I have created a puzzle that hides some objects in a loop and then takes a screenshot at the end…but it doesn’t work.

    MR

    #47815

    I think adding a small time delay may help.

    Chief 3D Verger | LinkedIn | Twitter

    #47819
    karonte
    Customer

    Yes, the trick is ok. But is there a “on capture end” method? because the delay is relative to a specific hardware…

    MR

    #47821

    I think it requires exactly 1 rendering frame to complete. This can be emulated using a timer with 0 seconds in it. you might give it a try and see if it works.

    Chief 3D Verger | LinkedIn | Twitter

    #47824
    karonte
    Customer

    In my puzzle, I create a loop to hide some objects, take screenshot, and show them again.
    I tried to put 2 seconds ( for testing) but unfortunately the screenshot has all the objects visible.

    Attachments:
    You must be logged in to view attached files.

    MR

    #47842

    Hi,

    It doesn’t work with the existing puzzle setup because this is what’s actually happening:
    – objects get hidden
    – screenshot is scheduled to be taken after 2 sec delay (this puzzle doesn’t pause the logic, so we just continue to the next puzzle)
    – objects get shown
    – 2 seconds pass…
    – screenshot is taken

    To make it work you should move the second “for each” puzzle block into the “after 2 second(s)” puzzle right after “download file”.

    But is there a “on capture end” method? because the delay is relative to a specific hardware…

    There’s nothing like that available yet, but the ability to specify exactly the next frame instead of an arbitrary amount of time could be useful in this case. We added such feature into our TODO list.

    Co-founder and lead developer at Soft8Soft.

    #47843
    karonte
    Customer

    I already tried your suggestion but unfortunately, it doesn’t work :(. i need to finish my work but i think i have to find another solution/trick.

    MR

    #47844
    karonte
    Customer

    Now it works with ” set timer”! with “after x seconds” no.

    Attachments:
    You must be logged in to view attached files.

    MR

    #47949

    Now it works with ” set timer”! with “after x seconds” no.

    Hmm, interesting. Anyway, glad you found a solution!

    Co-founder and lead developer at Soft8Soft.

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.