Copy link to clipboard
Copied
Hi everyone,
I'm trying to write a script that will open the selected Project panel sequence, but I'm having trouble locating the necessary sequence ID to use project.openSequence(sequenceID). I'm using this script from PPP to return the projectItem of the selected object(s):
var viewIDs = app.getProjectViewIDs();
var selectedItems = app.getProjectViewSelection(viewIDs);
Unfortunately, sequenceID is property of sequence, not projectItem. Is it somehow possible to find the sequence ID using the project item?
Thanks!
From the projectItem you can grab the item's nodeId, and then loop through all sequences (sequences
Kind of a round-about way, but I have had to do this before and just set it up as a little helper function.
Copy link to clipboard
Copied
From the projectItem you can grab the item's nodeId, and then loop through all sequences (sequences
Kind of a round-about way, but I have had to do this before and just set it up as a little helper function.
Copy link to clipboard
Copied
Ah genius—thanks so much!