Script syntax question

Discuss problems and solutions.
Softcore
Regular
Posts: 1613
Joined: 04 Nov 2012 08:34

Re: Script syntax question

Post by Softcore »

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.

;)
Cumulonimbus
Newbie
Posts: 12
Joined: 01 Mar 2015 07:03

Re: Script syntax question

Post by Cumulonimbus »

Thanks a lot to both of you for taking the time to explain this! I was thinking of Containers as arrays, not thinking about project hierarchy. Much clearer now :)
Cubase Pro 8.0 & VEP 5.3. OS X Yosemite 10.10.1, Mac Pro 2009 Quad 2.66, 28gb RAM, RME Fireface UC, iPad Air 2, iOS8.
Post Reply