Help with parent indexing

Hi guys,

When i reference from one level above into a base (one click of ‘i’ gets me there) why does the reference come out to parent(2). Im really confused shouldnt it be parent (1)?

Hi @TomCarroll97,

the parent to the operator “math1” is the component it is located in hence a .parent() (shortcut for .parent(1) expression on “math1” will return a reference to the component /project1/Audio_analysis. Since the operator you want to reference, is a child of /project, you need to first go 2 levels up before referencing any children of /project1.

Hope this makes sense
cheers
Markus

1 Like