Add a track in a sequence, extendscript
Hi,
I'm trying to find a way to add a track in a sequence with a script. (as the last commands from the menu list "sequences", add or delete tracks).
Fab.
Hi,
I'm trying to find a way to add a track in a sequence with a script. (as the last commands from the menu list "sequences", add or delete tracks).
Fab.
Hey Bruce,
thanks for your reply 🙂
The problem was, that using the remove functions with QEDom was causing an audioTrack to be deleted, which was not empty.
I am not really sure why this happened, but after cleaning up my code a little the problem did not seem to occur anymore.
In this case, I am sending commands to AfterEffects via BridgeTalk, because I thought we do not need an extra AE-panel for the usecase.
This works pretty neat, but I forgot some simple things, like "do not import footage if it already exists" - or "do not insert footage to a layer if it is already in there"....
So after cleaning up it seems to be good.
I must emphasize that I did not try that on newer versions, as we are still stuck to the 2019 versions (PPRO & AEFT), and I also did not try on Mac yet (I test stuff on the Mac after it is running in Windows 😉 ).
I will keep an eye on the remove functions (I know it is not part of the officially supported API), and test stuff in newer CC versions in the future...
(To me, Eli_Portell-TUVs1qs answer seems already correct to the OP question - I just wanted to add some little more detailed code how to get a sequence if you do not want to work with the currently active one, and after I posted it I saw the other post by RajinderSingh where he made a separate post with his question, because it is kind of a different question than the one which was asked here...).
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.