-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there a function to manually run snapshot function #74
Comments
Hi @johnyang90, the snapshot action calls the You can override this with your own code so when it's called you do whatever you need first, then call the original function. You can do that like this.
If you want this to apply to all scenes then you can add it to the If you want it to just apply to one specific scene then you can wrap it inside an
Note that only in-scene objects will be included in the snapshot image, so no HTML elements will be visible in the image. |
I tried to set some of the projections' visibility to false on snapshot button click, it doesn't hidden until i click second time, is there any function to run snapshot function once all the projections visible are updated successfully? and what is the custom function to close snapshot preview, because I will need to show back the hidden buttons when snapshot preview is closed? |
Hi @johnyang90, there's no option to
We'd recommend testing this on a slow/low powered device so you can get the timing right to allow for them. The function to close the snapshot preview is |
hi @awe-media , thanks for the suggestion, it is working now. I checked the frontend coding, the onclick function is placed inlined with the button, hence i think the custom function is not running. |
sorry my bad, i made some mistake on the projection id, now it is working. |
I am using the default snapshot function to create snapshot, I understand that the snapshot is to capture whatever on the screen. However, we added some custom buttons on the page level, so is there any way we can hide all the custom buttons before capture the snapshot?
The text was updated successfully, but these errors were encountered: