No internet connection
  1. Home
  2. Packages
  3. Multi-Function Buttons for Dummys

Using these in my own templates

By Brian Armstrong @Brian_Armstrong
    2023-05-30 07:36:18.894Z

    Hey Owen! Hope this finds you well.

    I'm still in the process of creating my character cues deck. So far, with your help, I've been able to create a template that allows me to select a track (as defined by the property Track Name), create a clip group and switch over to EdiCue.

    If that character hasn't been imported into my session yet, I'd like to press command and have a new track created with that character's name.

    I can do that on a character by character basis inside your template, but I'd like to create a template that is as simple as the one I've created (just have to enter the track name)

    • 2 replies
    1. S
      SoundFlow Bot @soundflowbot
        2023-05-30 07:36:22.123Z

        Thanks for posting a question or an issue related to the 'Multi-Function Buttons for Dummys' package.
        This package is made by @Owen_Granich_Young. 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. O
          In reply toBrian_Armstrong:

          Hey bud,

          Yeah you deff actually want to work this into the code of your own template instead of using this one.

          Here's the link to the original forum post where I learned how to build this template : Templating If/Or/Else what am I doing wrong?

          Here's the slimmed down code for just no modifier and command that you'd work into your own template.

          const modifierState = event.keyboardState.asString
          
          switch (modifierState) {
              case "cmd":
                  log("Command is held down");
                  /// YOUR HOLD COMMAND CODE GOES HERE
                  break
              case "":
                  log("No Modifiers are held down");
                  //// YOUR NO MODIFIER CODE GOES HERE
                  break
          };
          

          Then you can template out from there, ideally with a single STRING Property for both the scroll to track or the create new track.

          Sense making?

          Owen

          ps. When I'm not swamped I'm definitely going back to my ADR cuing Package and doing some updates from what we've been discussing.

          pps. as the Original forum conversation mentions for anybody else seeing this. This will ONLY WORK on a Deck or surface. Not with keybindings.