This inquiry is with regards to template structures in Vision.
I have the following actionPerformed event script configured on a button within a template:
print event.source.parent.name
print event.source.parent.parent.name
print event.source.parent.parent.parent.name
I have placed the template in a Main Window. When I click on the button, I see the following output on the console:
script_test
script_test
Root Container
Note that "script_test" is the name of the template.
I do not have a template nested within a template. Why do both parent and parent.parent reference the template? Do templates have some sort of master structure and substructure?
This is for my own understanding. I appreciate all explanations.