Quantcast
Channel: Adobe Community : Discussion List - After Effects Scripting
Viewing all articles
Browse latest Browse all 2143

How to add mask reference in effect's Composition Options with After Effects CC 2014?

$
0
0

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:

NameNameNameNamepropertyValueTypematchName
Compositing Options undefined ADBE Effect Built In Params
        Masks undefined ADBE Effect Mask Parade
            Mask Reference 1 undefined ADBE Effect Mask
                Mask Reference 1MASK_INDEXADBE Effect Path Stream Ref             
        Effect Opacity OneDADBE 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.


Viewing all articles
Browse latest Browse all 2143

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>