Adobe 65009963 Scripting Manual page 36

After effects cs4
Table of Contents

Advertisement

JavaScript Reference
AVItem setProxy() method
a pp .p r o j e c t .i te m (i nd e x) .s et Pro x y( fil e)
Description
Sets a file as the proxy of this AVItem. Loads the specified file into a new FileSource object, sets this as the value
of the
attribute, and sets
p r o x y S o u r c e
instead using the user preferences. If the file has an unlabeled alpha channel, and the user preference says to
ask the user what to do, the method estimates the alpha interpretation, rather than asking the user.
This differs from setting a FootageItem's main source, but both actions are performed as in the user interface.
Parameters
f i l e
Returns
None.
AVItem setProxyToNone() method
a pp .p r o j e c t .i te m (i nd e x) . s e t P r o x yT o N o n e ( )
Description
Removes the proxy from this AVItem, sets the value of
.
f al s e
Parameters
None.
Returns
Nothing.
AVItem setProxyWithPlaceholder() method
a pp .p r o j e c t .i te m (i nd e x) . s e t Pro x yW it h P l a c e h o l d e r ( n am e , w idt h , h e igh t , f r am e Ra t e, du rat ion )
Description
Creates a PlaceholderSource object with specified values, sets this as the value of the
and sets
to true. It does not preserve the interpretation parameters, instead using the user prefer-
u se Pr ox y
ences.
NOTE: There is no direct way to set a placeholder as a proxy in the user interface; this behavior occurs when a proxy
has been set and then moved or deleted.
Parameters
n a m e
w i dt h, h eight
f r am e R a te
to true. It does not preserve the interpretation parameters,
u s e P r o x y
An ExtendScript File object for the file to be used as a proxy.
p r o xy S o u r c e
A string containing the name of the new object.
The pixel dimensions of the placeholder, an integer in the range [4..30000].
The frames-per-second, an integer in the range [1..99].
AVItem object
to null, and sets the value of
p r o xy S o u r c e
36
to
u se Pr ox y
attribute,
36

Advertisement

Table of Contents
loading

This manual is also suitable for:

Creative suite 3 after effects

Table of Contents