Where can I find additional examples of scripts?

I’m looking to write something like “Build bank(s) associated with selected event”. I’m familiar with Javascript but am looking for more examples on finding object relationships. Can someone point me in the right direction? ty!

A useful feature is to use .dump() on variables you are using in the console to get an idea what properties are available.

For events, they have a banks array for every bank they are assigned to. You can iterate through this to build only those particular banks. For example

var event = studio.window.browserCurrent(); // Gets the currently selected event in the browser
var allBanks = event.banks;
allBanks.forEach(function(bank) {
    studio.project.build(bank.name);
});
1 Like

Thanks so much!!!