151
JavaScript Reference
PropertyGroup object
151
Examples
1
If a layer named “myLayer” has a Box Blur effect, you can retrieve the effect in any of the following ways:
m y L a y e r . p r o p e r t y ( “ E f f e c t s ” ) . p r o p e r t y ( “ B o x B l u r ” ) ;
m y L a y e r . p r o p e r t y ( “ E f f e c t s ” ) . p r o p e r t y ( “ b o x B l u r ” ) ;
m y L a y e r . p r o p e r t y ( “ E f f e c t s ” ) . p r o p e r t y ( “ A D B E B o x B lu r ” ) ;
2
If a layer named “myLayer” has a mask named “Mask 1” you can retrieve it as follows:
m y L a y e r . p r o p e r t y ( “ M a s k s ” ) . p r o p e r t y ( “ M a s k 1 ” ) ;
3
To get a Bulge Center value from a Bulge effect, you can use either of the following:
m y L a y e r . p r o p e r t y ( “ E f f e c t s ” ) . p r o p e r t y ( “ B u l g e ” ) . p r o p e r t y ( “ B u l g e C e n t e r ” ) ;
m y L a y e r . p r o p e r t y ( “ E f f e c t s ” ) . p r o p e r t y ( “ B u l g e ” ) . p r o p e r t y ( “ b u l g e C e n t e r ” ) ;
Summary of Contents for 65009963 - After Effects CS4
Page 1: ...SCRIPTING GUIDE...