Adobe 12040118 Using Help - Page 56
CompItem activeCamera attribute, CompItem bgColor attribute
UPC - 718659361808
View all Adobe 12040118 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 56 highlights
Help Using Help Reference Back 56 Methods inherited from Item object and AVItem object (see "Item object" on page 97 and "AVItem object" on page 37) Method remove() setProxy() setProxyWithSequence() setProxyWithSolid() setProxyWithPlaceholder() set Proxy To No n e() Reference Description see "Item remove() method" on page 99 deletes the item from the project see "AVItem setProxy() method" on page 42 sets a proxy for the AVItem see "AVItem setProxyWithSequence() method" on page 43 sets a sequence as a proxy for the AVItem see "AVItem setProxyWithSolid() method" on page 43 sets a solid as a proxy (feature available only via scripting) see "AVItem setProxyWithPlaceholder() sets a placeholder as a proxy method" on page 42 see "AVItem setProxyToNone() method" removes the proxy on page 42 Example Given that the first item in the project is a CompItem, the following code would result in two alerts. The first would display the number of layers in the CompItem, and the second would display the name of the last Layer in the CompItem. var firstComp = app.project.item(1); alert( "number of layers is " + firstComp.numLayers ); alert( "name of last layer is " + firstComp.layer(firstComp.numLayers).name ); CompItem activeCamera attribute app.project.item(index).activeCamera Description The active camera is the front-most camera layer that is enabled. The value is null if the comp contains no enabled camera layers. Type Layer; read-only. CompItem bgColor attribute app.project.item(index).bgColor Description The bgColor attribute specifies the background color of the comp. The value should be an array containing three floats in the range [0..1] for red, green, and blue. Type Array of three floating-point values from 0 to 1: [R, G, B); read/write. Using Help Back 56