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

Cannot get label color from script

New Here ,
Sep 04, 2024 Sep 04, 2024

Copy link to clipboard

Copied

I want to use Extend script to get the color of the labels of the clips in a Premiere pro sequence.
However, I keep getting “undefined”.
The clips in the sequence are labeled with various colors as shown in the image.
I have looked in various explanatory articles, but I could not find the answer.
If you could tell me how to do this, I would appreciate it.

 

What the Console Displays↓

3 undefined 4

 

var project = app.project ; var sequence = project.activeSequence ; 
$ .writeln ( sequence.videoTracks.numTracks ) ; 
$ .writeln ( sequence.videoTracks [ 0 ] .clips [ 0 ] .labels ) ; $ .writeln ( sequence.audioTracks.numTracks ) ;​​​​​
​​​​​​​​​

 

Untitled-1.png

 

TOPICS
SDK

Views

85

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

Adobe Employee , Oct 03, 2024 Oct 03, 2024

trackItem objects don't have a 'labels' member, nor an API for get/setting label color.

trackItems inherit their source projectItem's label color, at the time of their creation; there's no API around changing a trackItem's label color, after the instantiation.


Votes

Translate

Translate
Adobe Employee ,
Oct 03, 2024 Oct 03, 2024

Copy link to clipboard

Copied

LATEST

trackItem objects don't have a 'labels' member, nor an API for get/setting label color.

trackItems inherit their source projectItem's label color, at the time of their creation; there's no API around changing a trackItem's label color, after the instantiation.


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