Adobe 12040118 Using Help - Page 134
Property addKey() method, Property canVaryOverTime attribute, Property expression attribute
UPC - 718659361808
View all Adobe 12040118 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 134 highlights
Help Using Help Reference Back 134 my Proper t y.setValueAtKe y(3, new TextDocument("ke y number 3"); 8 Setting values using the convenience syntax for position, scale, color, or source text // These two are equivalent. The second fills in a default of 0. myLayer.position.setValue([ 20, 30, 0]); myLayer.position.setValue([ 20, 30 ]); // These two are equivalent. The second fills in a default of 100. myLayer.scale.setValue([ 50, 50, 100]); myLayer.scale.setValue([ 50, 50 ]); // These two are equivalent. The second fills in a default of 1.0 myLig ht.color.setValue([ .8, .3, .1, 1.0]); myLig ht.color.setValue([ .8, .3, .1]); / / T h e s e t wo a re e q u iv a l e n t . T h e s e con d c re a te s a Tex t D o c u m e n t myTextL ayer. so u rceText. setVa l u e(n ew Tex t D oc u m e n t ( " f oo" ) ) ; my TextLayer.sourceText.setValue("foo"); Property addKey() method app.project.item(index).layer(index).property(name).addKey(time) Description The property addKey method adds a new keyframe at the given time and returns the index of the new keyframe. Parameters time floating-point value; the time at which the keyframe is added Returns Integer; the index of the new keyframe. Property canVaryOverTime attribute a p p.p ro j e c t . i t e m ( i n d e x ) . l ay e r ( i n d e x ) . p ro p e r t y ( n a m e ) .canVar yOverTime Description The Property canVaryOverTime attribute is true if this property can vary over time, in other words, if keyframe values or expressions can be written to this property. Type Boolean; read-only. Property expression attribute app.project.item(index).layer(index).property(name).expression Description The Property expression attribute is the expression for this property, expressed as a string. This attribute forces an evalution of the given expression string. The value always changes to the given expression string even if the string is not a valid expression. Using Help Back 134