Defaulter Simple Macro
I've made a macro to simply automate Quiet Arts Defaulter while in it's 'fire macro keys mode'.
Some of the code is borrowed from Vladimir Poterukha's Defaulter pack in the store, thanks Vladimir.
if (sf.ui.proTools.getMenuItem('Edit', 'Fades', 'Delete').isEnabled) {
sf.keyboard.press({
keys: "tab, shift+tab",
});
} else {
sf.ui.proTools.firstAudioSuiteWindow.buttons.whoseTitle.is('Analyze').first.elementClick({
asyncSwallow: true,
executionMode: "Background",
});
It works ok and skips fades by retriggering the macro, but if a region has a fade at the end it selects the next blank space between regions and tries to process that.
Is there a way to get it to ignore a selection if it doesn't contain any clips and is there a way to loop it so I don't have to keep pressing the key over and over?
Many thanks!
- Chris Shaw @Chris_Shaw2022-02-19 22:27:29.781Z
you can check if a selection is empty space with this:
sf.ui.proTools.selectionGetInfo().isPureEmptySpace
If that returns true then a selection is just empty space- MMartin Pavey @Martin_Pavey
Thanks Chris, that's a good one to know!
Any idea how I would get it to loop until it runs out of clips on a track?
It doesn't have to be particularly elegant. ;-)