Assiging to multiple tracks at once
Should I be able to use this to instantiate a plug in on multiple selected tracks at the same time?
Because that doesn't seem to be working at all.
thanks
Linked from:
- In reply towilliam_wittman⬆:Kitch Membery @Kitch2021-06-03 17:04:09.067Z
Hi @william_wittman ,
Thanks for asking, The Plugin loader is currently only designed to work on individual tracks. But I will keep this feature request in mind for a future update. :-)
Rock on.
william wittman @william_wittman
thanks.
the ability to add, say, the same compressor to 4 guitar tracks at a go would make it far more useful.
but at least I know, now, that I'm not doing something wrong!
cheers,
w2Ben Rubin @Ben_Rubin
hey william, i ended up here with the same question. My coding is very primitive but here's a script that is working for me to load an instance of Pan Knob on slot 10 on five consecutive tracks. You can, of course, amend the script to fit your needs.
//Loop 5 times for (let i = 0; i < 15; i++) { //Calling command "Teezio’s Plugin Loader" from package "Teezio's Plugin Loader" (installed from user/pkg/version "uOwKfD26NbWKAWotin3dmnSne7B3/ckkcztgjh0000jt10i9gi61i5/cko2hy2p10002wx10xwju2gi2") sf.soundflow.runCommand({ commandId: 'user:1624569696752:ckkczttld0001jt10m5krbbh9', props: { pluginName: "Pan Knob", pluginCatagory: "Boz Digital Labs", pluginSlot: "10", pluginWidth: "(mono/stereo)", } }); sf.keyboard.press({ keys: "semicolon", }); }
best
bKitch Membery @Kitch2021-07-25 05:26:21.804Z
Hi @Ben_Rubin,
Nice work mate. And thanks for sharing with @william_wittman!
You could also use the
forEach
method which would only add the plugins to the selected tracks without using keyboard automation. I also added another line to reselect the tracks at the end.// In SoundFlow select the "Teezio’s Plugin Loader" preset you want to use, then from the "Command" menu, // select "Copy Command ID" and paste to replace the pluginPresetCommandID variables value below const pluginPresetCommandID = 'user:cklt4i5lf0004o010vm6wtf7b:ckkczttld0001jt10m5krbbh9#ckj9gepdh0003xd109mp4i4w1' const selectedTrackNames = sf.ui.proTools.selectedTrackNames; selectedTrackNames.forEach(trackName => { sf.ui.proTools.trackSelectByName({ names: [trackName], deselectOthers: true, }); sf.ui.proTools.trackGetByName({ name: trackName }).track.trackScrollToView(); sf.soundflow.runCommand({ commandId: pluginPresetCommandID }); }); sf.ui.proTools.trackSelectByName({ names: selectedTrackNames });
Hopefully that helps. Rock on! :-)
Ben Rubin @Ben_Rubin
Thanks Kitch, gonna try this out today. You rock!
- In reply toKitch⬆:
Ben Rubin @Ben_Rubin
kitch, thanks so much. it worked but after six of eight selected tracks, it failed. it wouldnt work on this one track.
Kitch Membery @Kitch2021-07-26 18:31:24.660Z
Hi @Ben_Rubin,
That's no good. Could you do a screen recording for me so I can see what's happening?
Rock on!
- In reply toBen_Rubin⬆:
Kitch Membery @Kitch2021-07-26 18:33:59.199Z
Also... Does it throw an error when it fails?
- In reply toBen_Rubin⬆:
Kitch Membery @Kitch2021-07-26 18:36:15.931Z
At first thought it could be that your preset is looking for a mono/stereo plugin on a track that does not have a mono/stereo plugin option.
Ben Rubin @Ben_Rubin
You were right, Kitch. When i changed the preset to (mono/stereo) it worked. Didn't try it on a group of mixed mono and stereo tracks. but worked on a whole bunch of backing vox. Thanks for your help!