• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Finding sequenceID based on projectItem

Explorer ,
Jan 17, 2019 Jan 17, 2019

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!

TOPICS
SDK

Views

1.1K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Explorer , Jan 17, 2019 Jan 17, 2019

From the projectItem you can grab the item's nodeId, and then loop through all sequences (sequences.projectItem) for a match.

Kind of a round-about way, but I have had to do this before and just set it up as a little helper function.

Votes

Translate

Translate
Explorer ,
Jan 17, 2019 Jan 17, 2019

Copy link to clipboard

Copied

From the projectItem you can grab the item's nodeId, and then loop through all sequences (sequences.projectItem) for a match.

Kind of a round-about way, but I have had to do this before and just set it up as a little helper function.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jan 17, 2019 Jan 17, 2019

Copy link to clipboard

Copied

LATEST

Ah genius—thanks so much!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines