Automation Blocks : Is it Possible to delete empty V and A Tracks in all selected sequences?
Finding documentation on clips and MOGRT, but is it possible to adress the tracks and delete unused as in the timeline Panel via second click? Thanks
Finding documentation on clips and MOGRT, but is it possible to adress the tracks and delete unused as in the timeline Panel via second click? Thanks
Turns out the extendscript "QE" API has built in methods for removing empty audio and video tracks. Be aware that technically the QE API is not supported and not documented (it's appraently meant for internal testing and stuff), so don't necessarily expect it to work forever, or to be able to get help if there's a bug.
With that disclaimer, this for example would do what you want, but only for the current active sequence:
app.enableQE();
qe.project.getActiveSequence().removeEmptyAudioTracks();
qe.project.getActiveSequence().removeEmptyVideoTracks();
Which you could do by just putting it into the "Pr Other" block in the execute code field:

Again that would only be for the active sequence.
Keep in mind behind the scenes, the QE API uses different object types than the regular API. Meaning you can't feed in a regular "Sequence" object into the QE API, since it uses its own "QESequence" objects.
I tried looking for a way to get a list of currently selected QESequence objects from the project panel, and while it's probably possible, it's not straightforward because there doesn't seem to be an equivalent to the "getCurrentProjectViewSelection" method for the QE objects.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.