Script Examples
Take Out All
There are 6 different API commands that you can use to "take out all" graphics in Erizos Studio:
Info
All of these calls are asynchronous and return a promise. Await them if you need to know that Studio has processed the command, or to chain another action after it.
Take out All graphics that are currently in the PROGRAM channel
1 | |
Take out All graphics in a specific channel
1 | |
Tip
The channel name is matched case-insensitively against the PROGRAM channels of the profile. A name that does not match any channel silently falls back to the PROGRAM channel of the active profile.
Take out All graphics in a specific profile
1 | |
Take out All graphics in a specific channel in a specific profile
1 | |
Take out All graphics in all channels
This is similar to the first option, but takes out graphics from all channels and not only the PROGRAM channel.
1 | |
Warning
takeOutAllFromAllChannels exists only on the root Api.profile object and always applies to the active profile. Api.profile("MyProfile").takeOutAllFromAllChannels() and Api.profile.channel("MyChannel").takeOutAllFromAllChannels() are not defined and raise a TypeError.
Take out All graphics in the PREVIEW channel
Api.profile.preview offers the same commands against the PREVIEW channel.
1 | |
Note
There is no user keyboard shortcut for Take Out All. The script API shown here, or a macro that calls it, is the only way to trigger it.