Adobe 12040118 Using Help - Page 40
AVItem frameRate attribute, AVItem hasAudio attribute
UPC - 718659361808
View all Adobe 12040118 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 40 highlights
Help Using Help Reference Back 40 When you read the value back, you are retrieving the reciprocal of the frameRate. Hence, if you set and then get the value to be a frameDuration that does not evenly divide into 1.0 (for example, 0.3), the value you get back will be close, but not exactly equal; due to numerical limitations, (1 / ( 1 / 0.3) ) != 0.3, but rather something close to 0.3. If the AVItem is a FootageItem, then this attribute is readOnly. In the case of a FootageItem, you must write to the conformFrameRate of the mainSource in order to change the frameRate, and hence the frameDuration. Type Floating-point value; seconds. Read/write or read-only if AVItem is a FootageItem. AVItem frameRate attribute app.project.item(index).frameRate Description The frameRate attribute returns frame rate of the AVItem. Permitted range is [1..99]. If the AVItem is a CompItem, then this corresponds to the frameRate of the comp. If the AVItem is a FootageItem, then this corresponds to the displayFrameRate of the mainSource, and is readOnly. In the case of a FootageItem, you must write to the conformFrameRate of the mainSource in order to change the frame rate. Type Floating-point value; frames per second. Read/write or read-only if AVItem is a FootageItem. AVItem hasAudio attribute app.project.item(index).hasAudio Description The hasAudio attribute is true if the AVItem has an audio component. In the case of a CompItem, the value reflects the value for the comp. In the case of a FootageItem, the value reflects the value for the mainSource. Type Boolean; read-only. AVItem hasVideo attribute app.project.item(index).hasVideo Description The hasVideo attribute is true if the AVItem has a video component. In the case of a CompItem, the value reflects the value for the comp. In the case of a FootageItem, the value reflects the value for the mainSource. Using Help Back 40