Composer
The composer module is giving access to the main composition and its nodes and fields. It allows to read and write any field's value on the fly.
Usage
To use this module, add the following require at the top of your script:
Reference
setValue
Set the value of a composer node's field. This works only on the main composition and only if the composer node has a name. If multiple nodes have the same name, the first one will be used
Parameters
nodeName(string): name of the composer nodefieldName(string): name of the fieldvalue(any): new value for the field
getValue
Get the value of a composer node's field. This works only on the main composition and only if the composer node has a name. If multiple nodes have the same name, the first one will be used
Parameters
nodeName(string): name of the composer nodefieldName(string): name of the field