I have been unable to figure out how to create a new playlist on a track in an EditorAction script.
I have a nice little script working except for this one (or two) lines.
Has anybody done this, or have any idea where to look?
Thanks in advance.
-Rick
Edit: I just noticed that after I run the script, the Undo command says it wants to undo a "new playlist" command, so something is happening.
The (simplified) code at issue is:
for t in Session:get_tracks():iter() do
Editor:new_playlists(t.to_audio_track)
end
I have no idea if this is how it's supposed to be done, and have yet to find an example anywhere.
I have a nice little script working except for this one (or two) lines.
Has anybody done this, or have any idea where to look?
Thanks in advance.
-Rick
Edit: I just noticed that after I run the script, the Undo command says it wants to undo a "new playlist" command, so something is happening.
The (simplified) code at issue is:
for t in Session:get_tracks():iter() do
Editor:new_playlists(t.to_audio_track)
end
I have no idea if this is how it's supposed to be done, and have yet to find an example anywhere.