Copy link to clipboard
Copied
Hi,
I'm wanting to use a custom label color for a few clips that will be repeating throughout my sequence.
1 Correct answer
Mangling XML files to specify label colors is unsupported, and not recommended.
PPro's ExtendScript API contains the getColorLabel() / setColorLabel() calls I referenced; here's some example code.
Copy link to clipboard
Copied
I'm not sure what a clipItem is; do you mean projectItem, or trackItem?
For projectItems, you can use getColorLabel() / setColorLabel(). Note: trackItems created from a projectItem will not have their label color updated; any new trackItems created from those projectItems, will get the updated label.
Also...what, specifically, are you editing, the .prproj file?
Copy link to clipboard
Copied
I'm editing an XML file that I import to Premiere.
And by clip item I mean the item that gets displayed in the timeline:
<sequence>
<media>
<video>
<track>
<clipitem id="clipitem-100001">
<name>Movie 1</name>
<start>0</start>
<end>30</end>
<masterclipid>masterclip-100000</masterclipid>
<enabled>TRUE</enabled>
<rate>
<timebase>30</timebase>
</rate>
<file id="file-100003">
<name>Movie 1.mp4</name>
<pathurl>./PNGs/Movie_1.mp4</pathurl>
</file>
<labels>
<label2>Rose</label2>
(Where would this go? setColorLabel(#00FFFF))
</labels>
</clipitem>
Copy link to clipboard
Copied
Mangling XML files to specify label colors is unsupported, and not recommended.
PPro's ExtendScript API contains the getColorLabel() / setColorLabel() calls I referenced; here's some example code.
Copy link to clipboard
Copied
Thank you for the quick response.
I have a newbie question, can you give me any more info about the link you just sent? Is that something that I would import into PR somehow? Do I just edit that in any IDE? What language is it? How do I find a user guide on how to create in that for PR?
Copy link to clipboard
Copied
Happy to help!
Like most Adobe applications, PPro supports CEP-based extensions; these panels are, at some level, web pages, but have two special powers: 1. They can access the local file system, and 2. They can drive the host application via ExtendScript.
Here's info about getting started with panels:
https://github.com/Adobe-CEP/Getting-Started-guides
Here's the PPro-specific example panel:
https://github.com/Adobe-CEP/Samples/tree/master/PProPanel
Here are PPro's ExtendScript API docs:
https://ppro-scripting.docsforadobe.dev
Feel free to reach out (directly) with any questions.

