Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
Scene and ui
-
What is value in using both? Are their "run" loops the on the same or independent threads?
-
They have different use cases.
scene
is mostly for games,ui
mostly for app-like GUIs. In some cases, you might need functionality from both – for example, you might use aui.TextField
in a game that allows you to enter your name etc. -
Are their interoperability issues?
-
Interoperability? What's that? ;)
There is the
ui.SceneView
, which can show a scene inside a UI, with a few minor limitations, but that's basically all you can do. The other way around is practically impossible, except perhaps for popover views on top of a scene. -
no idea lol
-
@hbgmysite very subtle spam there.
-
scene.SceneView actually.
-
Could someone point to an example of using
scene.SceneView
? I'd love to be able to add ascene
-powered element in an existingui
-based application to be able to display content based on input fromui
widgets, but I'm not completely understanding the use ofSceneView
, especially when trying to add a "custom view" widget in the UI editor. Thanks!Edit: figured it out, after finding https://omz-forums.appspot.com/pythonista/post/5817214200446976
I'll clean up my code and post the example script and
.pyui
file soon, in the hopes it will help others.