SetSceneItemProperties not accepting scale values #247
Unanswered
macharborguy
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Using the latest release candidate, 4.5, of obs-websocket
I am trying to simulate a zoom-in-out effect with obs-websocket-js and obs-websocket (posting this issue over on the obs-websocket GitHub as well to cover all my bases)
I am sending the following data with SetSceneItemProperties...
{ item : 'SourceName', position : { x : <number value>, y : <number value>, }, scale : { x : <number value>, y : <number value> } }
The Protocol document says that Position X and Y accept Ints, and Scale X and Y accept Doubles.
If I send a number value of 100, or 100.00, or even 100.001, the actual scale that gets propagated onto the Scene Item in OBS is 90001.0000
If I send it as a string, such as "100", "100.00" or "100.001", the scale is set to 0.
Oddly enough, if I do a GetSceneItemProperties request after having set the value as a Number in JavaScript, the results I get back from the request show that the proper numbers are in fact saved.
So setting the scale is showing up in the OBS preview and Edit Transform window as 90001, but GetSceneItemProperties requests shows the proper values I set.
Beta Was this translation helpful? Give feedback.
All reactions