Read and update control nodes
Last updated
Last updated
This example explains how to use composition scripting to read and update a composition's control nodes.
comp.find()
comp.getPayload()
comp.getPayload2()
comp.setPayload()
Load this to follow along in a real composition.
The example composition has one sub-composition called Lower, as you can see in the composition tree.
To see the sub-composition's objects:
Select the Lower sub-composition and Control Properties in the property panel.
To see this sub-composition's control nodes:
In the Composition Control tab, select Lower and then the Sub-comp info tab.
This composition contains three control nodes:
Title: a text control node
Subtitle: a textarea control node
Station Logo: an image control node
Now that you have located the composition's control nodes, learn how to read and update them by reading the comments in the Lower composition script.
You can also copy and paste the composition script below into your own compositions.
within the same as above and open the Lower composition script.