Best practices
Use these cheat sheets to follow best practices in common scripting tasks.
Communication between sub-compositions
An efficient option for exchanging data between sub-compositions is by adding functions to the composition object.
Receiving data in a sub-composition
Extend a composition object by adding the function comp.updateContent()
Lower subcomposition Script
Sending data to a sub-composition
Get reference to the receiving composition and send data by calling its updateContent() function.
Root Script
Updating overlay content from the composition script
A typical use case is receiving data in sub-composition control nodes, interpreting them, and updating properties within the sub-composition.
In such a case, it is recommended to unlink the receiving control nodes from properties and directly update widget properties.
Reading control nodes, generating HTML, and updating the widget’s text property
Lower subcomposition Script
Last updated
Was this helpful?