Skip to main content
johnt53984649
Inspiring
April 29, 2019
Question

Change Colorama Colors Via Scripting

  • April 29, 2019
  • 1 reply
  • 6935 views

Observe the following code:

mycomp = get_comp_by_name("BACK")

var jj = mycomp.layers[1].property("Effects").addProperty("APC Colorama")

jj.property("Blend With Original").setValue(50)

jj.property("Use Preset Palette").setValue(6)

jj.property("Output Cycle").setValue([6, 8, 10])

The first two properties are able to be modified successfully.  However, no matter the argument I give to setValue of the last line (for "Output Cycle"), I always end up with the following error from After Effects:

NgSysK6.png

Is it possible individually manage every color used in the Output Cycle of Colorama (you are able to with the GUI, so I would hope you could with a script)?  As I demonstrated in the line before, you can change which preset palette you select, but I'm not sure how to change individual colors on the Output Cycle wheel (how many, what color, at what rotation, alpha, etc.)

Is it possible to have that level of control for Colorama with After Effects scripting?  If not, what would you suggest as a scriptable alternative to achieve similar effects (mapping grays to different hues)?

This topic has been closed for replies.

1 reply

Justin Taylor-Hyper Brew
Community Expert
Community Expert
April 29, 2019

I'm seeing the same issue here, the data type seems to be custom/inaccessible. In situations like this, I've heard of people modifying a preset and applying that preset to a layer. Gets pretty tricky to reverse engineer ffx presets, but in some situations, that's your only option.

johnt53984649
Inspiring
April 30, 2019

That won't work for me since this needs to be entirely automated.  Do you happen to know if there are other ways to achieve the same effect as Colorama?  Or perhaps have custom presets that can automatically be loaded in any project file?

Justin Taylor-Hyper Brew
Community Expert
Community Expert
April 30, 2019

You can fully automate the process once you have it solved, but of course, it's best if you can find a more straightforward way. What are you using colorama to achieve? If it's just remapping luminance values to color, you could try Tint.