I'm working on automating certain effects and trying to figure out how to access them properties. For most of them, it's pretty obvious...e.g. Black Point for "3D Channel Extract" is blackPoint. However, to simplify the amount of work, I'm wondering if it's possible to programmatically extract those values. I notice that when I do the following, I only get members from the generic PropertyGroup object.
var effect = layer.addProperty(matchName);
for(prop in effect) {
alert(prop);
}
I'm also noticing that when I access the effect properties directly, they show up in the list.
var effect = layer.addProperty(matchName);
effect.blackPoint.setValue(200);
for(prop in effect) {
alert(prop); //blackPoint shows up in prop list
}
I also noticed that when setting values via the property() function (whether by index or prop name) does not make the effect props show up in the list.
Is there any way to figure this stuff out on an effect by effect basis? How might I go about doing that?
I understand this is a little bit of an "under the hood" type question that might only be answerable by Adobe people, but any help would be appreciated. Ultimately I know I can go effect by effect and figure it out that way, but if there is any way to programmatically figure it out...that would save a TON of time.
THANK YOU!
Calvin Swaim