Sorry if this isn't formatted well, I don't think I've ever submitted an issue before. I'm trying to enable/disable a source and I cannot get it to work no matter what I do. I've also just started using websocket today so maybe I'm just mistaken that a "scene item" is the same as a source.
No source names seem to work, "Webcam" is what I am trying to hide but I've tried it with several different source titles.
obs.call('GetSceneItemId', {
sceneName: "Main Scene",
sourceName: "Webcam"
});
Error: No scene items were found in the specified scene by that name or offset.
I got the source ID by exporting the scene collection and getting it manually from that, but that doesn't seem to work either, unless those IDs are different.
obs.call('SetSceneItemEnabled', {
sceneName: "Main Scene",
sceneItemId: 79,
sceneItemEnabled: true
});
Error: No scene items were found in scene Main Scene with the ID 79.
What's strange is if I check if the source is active with the same scene and source names it works fine and correctly states if it's active and showing or not.
obs.call('GetSourceActive', {
sceneName: "Main Scene",
sourceName: "Webcam"
});
Sorry if this isn't formatted well, I don't think I've ever submitted an issue before. I'm trying to enable/disable a source and I cannot get it to work no matter what I do. I've also just started using websocket today so maybe I'm just mistaken that a "scene item" is the same as a source.
No source names seem to work, "Webcam" is what I am trying to hide but I've tried it with several different source titles.
I got the source ID by exporting the scene collection and getting it manually from that, but that doesn't seem to work either, unless those IDs are different.
What's strange is if I check if the source is active with the same scene and source names it works fine and correctly states if it's active and showing or not.