Re: Script syntax question
Posted: 02 Mar 2015 12:02
to Cumunolimbus: If its any help to get the logic...
getnext(object) does not get the next object in the object....but the "next" object in the project window hierarchy...
So, when you have two knobs inside a container, Knob1 and Knob2 x
getnext(Knob1) will get you Knob2.
Also keep in mind here that, unfortunately "tabs" of containers are an exception to this rule: even though they are shown in the project window hierarchy, they are not part of it - as in, if you have a Container with two tabs and Knob1, Knob3 in the first one, Knob2, Knob4 in the second tab:
getnext(Knob1) will NOT get you Knob3, it will get you Knob2.
getnext(object) does not get the next object in the object....but the "next" object in the project window hierarchy...
So, when you have two knobs inside a container, Knob1 and Knob2 x
getnext(Knob1) will get you Knob2.
Also keep in mind here that, unfortunately "tabs" of containers are an exception to this rule: even though they are shown in the project window hierarchy, they are not part of it - as in, if you have a Container with two tabs and Knob1, Knob3 in the first one, Knob2, Knob4 in the second tab:
getnext(Knob1) will NOT get you Knob3, it will get you Knob2.