Hey guys,
I'm writing a script that will copy the layer setup (complete with layer styles, effects, etc) of a comp that I can duplicate on another comp.
For the most part, it's working, except on a specific effect I'm trying to copy. I'm finding I can't set the value for certain attributes - they throw the following error:
Error: After Effects error: Can not “set value” with this property, because the property or a parent property is hidden.
But if I write a separate script that attempts to set the value well after the whole effect has been populated, it has no problems.
By the way, in case it's relevant, the effect that's causing the problems is called OLM Color Key, and it has a property called Number of Colors that allows you to change the number of colors it samples (up to 25, I believe). Each of those colors has a Color attribute and a Use Color attribute. The Use Color property is the property I mentioned above that's causing problems. If Use Color is unchecked, the effect behaves as if that color wasn't in its array. The problem is I can set the Use Color property with Extendscript for the FIRST color, but no colors afterward. Do you guys have any idea why that would be the case? Does it have anything to do with the Number of Colors attribute enabling/disabling colors?