Why adobe, why?

Get After-Effects Label Colors to your CEP Panel

Why adobe, why?

This repository finds the preference file, reads it, finds that section, and converts each value into propper hex.

What’s a Rich Text element?

What’s a Rich Text element?

What’s a Rich Text element?

What’s a Rich Text element?

The rich text element allows you to create and format headings, paragraphs, blockquotes, images, and video all in one place instead of having to add and format them individually. Just double-click and easily create content.

Static and dynamic content editing

A rich text element can be used with static or dynamic content. For static content, just drop it into any page and begin editing. For dynamic content, add a rich text field to any collection and then connect a rich text element to that field in the settings panel. Voila!

How to customize formatting for each rich text

Headings, paragraphs, blockquotes, figures, images, and figure captions can all be styled after a class is added to the rich text element using the "When inside of" nested selector system.

(Source code below)

Label colors in Ae Preferences look like this:

["Label Preference Color Section 5"]
"Label Color ID 2 # 1" = FFB5"88"
"Label Color ID 2 # 10" = FF8E","9A
"Label Color ID 2 # 11" = FFE8920D
"Label Color ID 2 # 12" = FF7F"E*"
"Label Color ID 2 # 13" = FFF4"m"D6
"Label Color ID 2 # 14" = FF"="A2A5
"Label Color ID 2 # 15" = FFA896"w"
"Label Color ID 2 # 16" = FF1E"@"1E
"Label Color ID 2 # 2" = FFE4D8"L"
"Label Color ID 2 # 3" = FFA9CBC7
"Label Color ID 2 # 4" = FFE5BCC9
"Label Color ID 2 # 5" = FFA9A9CA
"Label Color ID 2 # 6" = FFE7C19E
"Label Color ID 2 # 7" = FFB3C7B3
"Label Color ID 2 # 8" = FF"g}"E0
"Label Color ID 2 # 9" = FF"J"A4"L"

After a lot of google searches, I found a comment by RenderTom pointing out that the values are a weird mix of ASCII and hex. (The parts inside the quotation marks are ASCII). This repository finds the preference file, reads it, finds that section, and converts each value into propper hex.

What kind of sorcery is this? 🧙

Follow the Good Boy Ninja on Twitter for After-Effects tips and tricks
Follow

Usage

call the function:

getLabelColors();

return

returns an array of hex codes in the right order (based on the Label Color ID #)

Example:

["", "B53838", "E4D84c", "A9CBC7", "E5BCC9", "A9A9CA", "E7C19E", "B3C7B3", "677dE0", "4a224134224c", "8E2c9A", "E8920D", "7F452a", "F46dD6", "3dA2A5", "A89677", "1E401E"]

The first element is empty because there is no label for the number 0, but that's okay since the layer.label attribute in ExtendScript returns an index that matches that convention.

requirements

requires using nodejs as part of your project.

Support

If this helped you consider buying one of my tools or sharing this elsewhere where people might need it.

Good Boy Ninja

Visit the GitHub repository for the full source code

Also check out...
Wiggle
Colors
Noodle
shpr
Paths from Nulls
Good Boy Ninja
Motion Designer since 2008.
Maker of tools for Adobe After-Effects
Quick jump:
April 20, 2022
 
Similar Posts
Congratulations sailor, you made it to March🎉
I'm keeping the 22.22.2022 discounts up for a few more days. Thanks for getting my tools!