PrismarineJS/prismarine-viewer

How to get the first-view image in Python when a specific event happens?

Lizhuoling opened this issue · 1 comments

In the demo, the Python code continuously gets frames from the js viewer. However, I only want to get a first-view image when a specific event happens. How can I realize this? For example, can the js viewer send an image only when the event happens, or directly return the array of the image in js code?

You would need to change the code to do that. You can ask ChatGPT to adapt the code for your use case (send data only on specific event)