Skip to content

Sources can't be found by name or ID #366

@jFar920

Description

@jFar920

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"
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions