creating scene, adding input, sizing in scene #35
davehorner
started this conversation in
General
Replies: 1 comment 2 replies
-
I found set_transform and it scales fine.
In the UI you can center to screen, fit to screen, etc and those actions translate into a computed transform. Is there a way to perform these actions and not have to compute the transform via construction/re-implement these transforms? I played a bit more 5e6c2db trying to change the source input if its already there... set private settings didn't seem right, was looking at client.inputs().set_settings but that also didn't seem to work for me. cheers. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
Thanks for the information in: #34
Figured I'd move it to a discussion as it isn't a bug or PR,
I've got code that I'm using;
629530d
its not ready for sharing but it is helpful for communicating.
The first time, it creates the scene/source/input correctly. The subsequent run, it does list the settings for the source and then it exits Error: API error: ResourceAlreadyExists. I'm calling client.inputs().remove(source).await.ok(); and it seems to work, do I need to do something else after the remove or why might I be getting this ResourceAlreadyExists.
The code is working. Wondering how I size the input in scene on screen.
client.inputs().settings::<serde_json::Value>(source).await.ok();
was very helpful. wondering what I need to be looking at to watch and set layout.
anyway; thanks again.
Beta Was this translation helpful? Give feedback.
All reactions