Open Zaniyar opened 5 years ago
@Zaniyar did you find a solution for this? having the same issue..
You need to nest the position elements, the plugin docs try to explain this, but I agree that it's a bit tough to decipher. https://github.com/Palakis/obs-websocket/blob/c31ec077f588922951c2d5ea321188e69a948f89/docs/generated/protocol.md#setsceneitemproperties
When the docs say position.x
what they mean is an object named position with key x
.
{
"position": {
"x": 300
}
}
So your request would need to look something like this. ex:
obs.SetSceneItemProperties({
"scene-name": "Szene",
"item": "Small Picture",
"position": {
"x": 300
}
});
No matter how much I try, I still get errors trying to work with SetSceneItemProperties...
My code looks like this:
obs.send('SetSceneItemProperties', { 'scene-name' : 'Escena', 'item' : 'Imagen', 'position' : { 'x' : 300 } });
and I get this error no matter how much I try
I am able to change the streaming server, HLS sources for streams and start and stop a stream, but changing size and scale of a layer is not working :/ Is there something i'm doing wrong?
Thanks
Hello, I have some unresolved problem I cant current scene's property(visibility, position, starttime, end time) only can change preview scene. please help me. thanks
Given:
I have a scene (named 'Szene') and there a source (called 'Small Picture').
When I do this:
obs.SetSceneItemProperties({"scene-name": "Szene", "item": "Small Picture", "visible": false});
It works perfectly.Problem:
When I do this:
Nothing happens! Console log:
{ 'message-id': '5', status: 'ok', messageId: '5' }
Versions Used: