No internet connection
  1. Home
  2. Packages
  3. OBS

Incorporate an OBS preset into a script

By Brandon Jiaconia @Brandon_Jiaconia
    2024-08-23 02:26:46.759Z

    I'm trying to use an OBS Package preset in the context of another script. When I use something like

    sf.soundflow.runCommand({
        commandId: 'user:clbmpcr120000ue10sv4k0d3b:ckbl0750p0004y5108y09im1w#clz4kwoda0000vu10xwb0xonv',
        props: {}
    });
    

    I get the error " This meta command doesn't implement useCommandBehavior or useFlowBehavior, so it can't be run". I think I'm overlooking something, but can't figure it out!

    • 4 replies
    1. S
      SoundFlow Bot @soundflowbot
        2024-08-23 02:26:49.515Z

        Thanks for posting a question or an issue related to the 'OBS' package.
        This package is made by @chrscheuer. We're auto-tagging them here so that they will hopefully be able to help you.

        Please note, that the best way to get help with a script, macro or other content installed from the Store is to select the script you installed, then click the red Need help button, and then click "Get help with this script or macro".
        By using this workflow, the developer of the package will get access to more information so they'll be able to help you quicker.
        You can read more about how to best get help in this article: bit.ly/sfscripthelp

        1. Hi Brandon,

          This behavior is indeed not implemented for these scripts yet. The reason is that they rely on a websocket connection to be open, which is opened when the meta command (OBS script preset) is used in a deck. This way, SoundFlow knows to open the connection to OBS when the deck is shown, and close it when the deck is closed / navigated away from.
          When such commands are run from another macro, we don't know when to open/close the OBS connection. We may be able to just do it "on-the-fly" or, perhaps even from the opening of SoundFlow itself, but this has not yet been implemented.

          What's the use case where you want this to happen as part of another macro?

          1. BBrandon Jiaconia @Brandon_Jiaconia
              2024-08-23 11:43:56.673Z

              Thanks for the reply Christian. The use case would be something like: "Show Video window - Quarter Size video window - Select OBS Scene - Play". This would set up playback for my clients over zoom/teams.

            • S
              SoundFlow Bot @soundflowbot
                2024-08-23 13:49:15.286Z

                This issue is now tracked internally by SoundFlow as SF-1418