Copy link to clipboard
Copied
In AP 14.7 the methods Sequence.createSubsequence() and Sequence.clone() work exactly the same - they clone the sequence with all content but with different names. I hoped to make such as "nested dequence" method based on Sequence.createSubsequence(), but it was failed 😞
You're not doing anything wrong; the API behaves differently from the UI.
Copy link to clipboard
Copied
createSubsequence() has a param that will let the subsequence ignore existing track targeting.
What other differences between clone(), and createSubsequence(), were you hoping for?
Copy link to clipboard
Copied
I hoped that Sequence.clone() is full analog for context menu "Duplicate" - the way it is. No arguments, sipmly method. Yes. Ok. It is logical to expect that Sequence.createSubsequence() is full analog for context menu "Make subsequence". Really I can't see the difference between these 2 methods both using "true" and "false" as boolean argument in createSubsequence().
I open any project, select any sequence and some clips in it and execute execute app.project.activeSequence.clone() - I get new sequence with all content and " Copy" suffix as result. Ok. I execute app.project.activeSequence.createSubsequence(true) and get the same result, but suffix is "_Sub_01". I execute app.project.activeSequence.createSubsequence(false) and get third identical sequence. If I executed the command "make subsequence" manually from context menu I'd get new sequence only with selected clips as content...
What I'm doing wrong?
Copy link to clipboard
Copied
You're not doing anything wrong; the API behaves differently from the UI.