Accessing Components Inside a Template Instance
When working with a Template Instance, the components inside that instance or normally hidden, and otherwise inaccessible. However, you can access these components via scripting. It helps to think of Template Instances as multi-layer containers. In most cases, users interact with only the Outer Layer, which contains the Template parameters, and the other default Template Instance properties. A Python script can access the Inner Layer, which then provides access to the components within.
A script can traverse to the Inner Layer from the Outer Layer with a
From the Inner Layer, a script can then call
getComponent again to access any components within. Assuming a Template with a Label component named "Label", we could access the Text property with the following: