The main reason why I update my After Effects to cc 2014 is "compositing options for each effect, including ability to confine area affected by each effect with masks".This useful feature really simplify my work.But now I realize that I want to use the feature with script.
I get the effect's Composition Options name and matchName.It seems like this:
Name | Name | Name | Name | propertyValueType | matchName |
Compositing Options | undefined | ADBE Effect Built In Params | |||
Masks | undefined | ADBE Effect Mask Parade | |||
Mask Reference 1 | undefined | ADBE Effect Mask | |||
Mask Reference 1 | MASK_INDEX | ADBE Effect Path Stream Ref | |||
Effect Opacity | OneD | ADBE Effect Mask Opacity |
I try to use .canAddProperty("ADBE Effect Mask") and .canAddProperty("ADBE Effect Path Stream Ref").However it returns false.
I found that add or delete this property in user interface are buttons "+" and "-",so maybe I can use app.executeCommand(app.findMenuCommandId(theCommand));.However,I can't find the button's name for it did not has helpTips to remind me of the name.
So how to add mask reference with script? Or ESTK has no access permission to this useful property until now?I did not find anything on the Internet.
By the way,I have another two small questions:
1.If there are more than two masks in a layer,the matchName for each mask is the same ('ADBE Mask Parade')('ADBE Mask Atom').How can I use the matchName to get the second mask's property such as Name?First I treat it as an array,but ('ADBE Mask Parade')('ADBE Mask Atom')[index] actually did not work,while ('ADBE Mask Parade')('ADBE Mask Atom')(index) is absolutely refering to the child property in the first mask.I have no idea about it.
2.When I use theproperty() method with script , property('effect') and property("effect") are both ok.The only difference in the method is the Single Quotation Marks ' and the Quotation Marks " .I just want to know if the ' and " have any differrence in the method property(),except that 'This color is blue' and "This color is purple" in ESTK.
Any advice and response would be appreciated.