Page 1 of 1

A confirmation on how this works?

Posted: 07 Apr 2015 12:45
by Softcore
I think I have read it some long time ago somewhere.....

I also can confirm with a small test template......

But I reaaallly really would like some confirmation by others.....

So, my question is....when a script is residing in an object and that script refers to another object in the template, then Lemur works from THAT level of hierarchy and upwards...NOT from top - level down. Is this correct?

How I tested:

Container1 - contains a Fader and a Knob. The Knob has a script which is:
Fader.x = x;

Now, I duplicate this container and naturally I end up with:
Container2 - STILL contains a Fader and a Knob - their names are not changed because in the hierarchy, they are inside different containers.
Now, moving the knob in Container2 STILL controls the Fader in the Container2 and NOT in the Container1.

All good....Im just worrying that I might bump into unexpected behavior in the long run? or is it totally ok to leave it as is and not go:

Container1.Fader.x = x; for the knob in Container1
Container2.Fader.x=x; for the knob in Container2

Re: A confirmation on how this works?

Posted: 07 Apr 2015 16:08
by Macciza
Not exactly sure what you mean here actually , , but it a question of 'lexical scope' I guess ...

Containers have there own scope so you can easily refer to those local objects, Fader and Knob are the local names to any Container. It is only when you want to access them from some where else that you need to use the Container1.object reference. This is pretty standard so you can encapsulate things, and easily duplicate them without have to tailor very single instance with Container specific names.

Is that sort of what you were wondering?

Re: A confirmation on how this works?

Posted: 07 Apr 2015 19:50
by Softcore
Aaaah ok thanks - yes your reply definitely covered my concerns.

Re: A confirmation on how this works?

Posted: 24 May 2015 15:25
by digitalson
its like that switch transport u helped me design,when i copyed it to different tabs i just needed to change all the pad nums in the scripts to match the pads, im wondering if i put that in its own container would i have had to do all that?

Re: A confirmation on how this works?

Posted: 25 May 2015 12:51
by Phil999
no. Inside a container you can use the same names for objects as in other containers. That way one can build little 'modules' inside containers that can be easily duplicated.

Re: A confirmation on how this works?

Posted: 26 May 2015 06:28
by digitalson
damn i wish i knew that before copying like 8 trans,s

Re: A confirmation on how this works?

Posted: 26 May 2015 09:48
by Softcore
Thanks for the replies everyone! ;)