- Christian Scheuer @chrscheuer2020-04-22 10:42:08.966Z
There are quite a few examples around the forum on how to automate the Bounce to Disk dialog.
Here's one from @Andrew_Scheps:
https://forum.soundflow.org/-1564#post-26This is one from me:
https://forum.soundflow.org/-21Here's a full search on all the various posts that exist:
https://forum.soundflow.org/-/search?q=bounceYou should get started by trying to copy/paste and gather what you can find, and then we'll help you when you get stuck :)
- JJonathan Grossman @Jonathan_Grossman
I'm going through Andrew's extensive code and it is amazing what he has done, but my workflow is much different. Imagine I can spend a day trying to figure it out, but perhaps I can ask a few specific questions to start. Here are modifications I'd like to make to his code that I can't figure out myself yet:
- I have my bounced tracks at the top of the session, not bottom.
- I have them bounced into the BOUNCED FILES folder, and then within another folder named "SESSION_NAME_MIXES_AND_STEMS_V?. Would be great to have the macro create that folder with that name and, name the mix that name and put it there.
3)How do I take the session name and populate the bounced file name while adding _NSA_V? where ? is the incremental version number - I'd like to have one macro that would select FULL MIX as the output path and completely other duplicate macro for all the stems. obviously 2 different buttons on the SD.
- his script duplicates the playlist of the existing mix, but I really only need the new mix printed to a new track with the updated revision name both in the track name and file name.
- In reply tochrscheuer⬆:JJonathan Grossman @Jonathan_Grossman
Hi Christian:
Kitch has been amazingly helpful and fun to work with as well! We created a bunch of macros. However, I decided to take some off his plate and figure them out on my own. I'm working on a bounce to disk macro (see below). I'd like to create a variable where if the BOUNCE SOURCE is only •FULL_ST_MIX• then it would add that to title of the bounced file e.g. (session name)_FULL_ST_MIX_NSA_Vsf.keyboard.press({
keys: "alt+cmd+b",
});
var sessionPath = sf.ui.proTools.mainWindow.sessionPath;
var sessionName = sessionPath.split('/').slice(-1)[0].split('.').slice(0, -1).join('.');sf.keyboard.press({
keys: "tab, right, shift+minus, shift+n, shift+s, shift+a, shift+minus, shift+v",
});sf.wait({ intervalMs: 1007,
});
sf.ui.proTools.windows.whoseTitle.is('Bounce').first.buttons.whoseTitle.is('Choose...').first.elementClick();
Christian Scheuer @chrscheuer2020-05-05 09:59:59.013Z
Hi Jonathan.
If you're looking to script these things yourself, you should definitely take a look at the links I sent above.
To learn more about how to automate popup windows, and not use Keyboard simulation (which almost always can be done in a better way with SF), I highly recommend starting with macros and then converting to scripts.
In these two videos I walk through how to get started with UI automation - and this also includes how to set values in text fields for example:
- SIn reply toJonathan_Grossman⬆:Sebastian @Sebastian
Hi, I tried to figure out how to choose a diffrent directory folder in the bounce to disk menu but unfortunatly couldn't get my head around it. Could you let me know the script for: click on the CHOOSE... button and then set a specific folder in the main session folder an hit open?