No internet connection
  1. Home
  2. How to

Mute Clips by Name

By @unnamed_46
    2023-12-08 12:05:23.136Z

    Hi! I have a sequence of clips on a track, some of which come from a file containing corrupted metadata. I would like to iterate through all of the selected clips, and then mute all clips that reference this corrupted file. All of the clips referencing this file are named according to the file name, so it would be great if I could mute any clips that start with this name. Here is what I have started with:

    function muteClip() {
    
        //Calling command "Mute/Unmute Clips" from package "Pro Tools" (installed from user/pkg/version "srAasovvDiQacRZ2mcId4RrOA8R2/ckp49i4j60000a2100yfwywgf/clcf936ky0000l110ggp9f9bf")
        sf.soundflow.runCommand({
            commandId: 'user:ckp49i4j60000a2100yfwywgf:ckt90h5f100008a10ilhfochy#ckt554y75001w3n10tnnplxke',
            props: {}
        });
    
    }
    
    sf.ui.proTools.appActivateMainWindow();
    
    sf.ui.proTools.clipDoForEachSelectedClip({action: muteClip});
    
    

    This works well in muting all selected clips, but I would like to be able to only mute clips whose name starts with the same 5 characters. Any help is greatly appreciated, thanks in advance!

    • 0 replies