Switch outside of Container,

Discuss problems and solutions.
Post Reply
nicowski
Newbie
Posts: 6
Joined: 25 Feb 2012 12:07

Switch outside of Container,

Post by nicowski »

Hello,

can someone help me quick,

if i have a switch in the same container i use follow script line to reset the multislider.

if (x) {MultiSlider7.x = range(sizeof(MultiSlider7.x), 0, 0
);

how i can set the project struktur in the script if i want to reset a multislider inside of a conatiner with a switch outside,

if (x) { Container.Tab, MultiSlider7.x = range(sizeof(MultiSlider7.x), 0, 0
);

thanks
Softcore
Regular
Posts: 1613
Joined: 04 Nov 2012 08:34

Re: Switch outside of Container,

Post by Softcore »

if (x) Container.MultiSlider7.x = range(sizeof(Container.MultiSlider7.x), 0, 0);

Tabs are not referenced in scripts - the object hierarchy is always "symbolized" with a dot.

A multislider in a Container in a contaiNer in a coNtainer is:

coNtainer.contaiNer.Container.multislider
Last edited by Softcore on 05 Jun 2013 13:32, edited 1 time in total.
nicowski
Newbie
Posts: 6
Joined: 25 Feb 2012 12:07

Re: Switch outside of Container,

Post by nicowski »

:D thanks alot
nicowski
Newbie
Posts: 6
Joined: 25 Feb 2012 12:07

Re: Switch outside of Container,

Post by nicowski »

Hello again,

i have a follow question,

i need to have bookmarks in my live arrangemt. that means i can trigger a pad and the live api jumps to that scene.
Live.Kontrol2 has following script line to jump to the playing clip when you press the track button.
my idea is to have the same function but just to jump with the view to a spezific scene.

if (SelectTab._enabled) {
if (x) {
Mixer.tid = firstof(x);
selectinterface(2);
decl objs = {Mixer1.Mute, Mixer2.Mute, Mixer3.Mute, Mixer4.Mute, Mixer5.Mute, Mixer6.Mute, Mixer7.Mute, Mixer8.Mute};
setattribute(Mixer.Mute, 'labels', getattribute(objs[firstof(x)], 'labels'));
setattribute(Mixer.Title, 'content', getattribute(getobject(), 'labels')[firstof(x)]);
midiout(0,{240,1,3,firstof(x),247});
}
;
} else {
midiout(0, {240,0,2,firstof(x),247});
;
}



possible to get this with the new Live.kontorl2 script ? it works perfekt with mu...
thanks
Post Reply