scripting problem

Discuss problems and solutions.
Post Reply
agentsmith23
Newbie
Posts: 9
Joined: 22 Nov 2012 12:02

scripting problem

Post by agentsmith23 »

hi,

i hope you guys can help my out. i´m new to lemur and i got some problem here.
i´ll create a remote for the eq eight(ableton) and i want to transfer the midi-value from each point from my breakpoint to the attributesmanager in the tabbed container.
y. for gain and x. for the freq.
i just want control the atrributesmanager with my points an in reverse as well.
is it possible, if i touch for example point 3 to show tab3 of of the tabbed attributesmanager?
just show allways the current tab of points i moved.

regards!

http://www.fotos-hochladen.net/view/ohn ... up9tli.jpg
Softcore
Regular
Posts: 1613
Joined: 04 Nov 2012 08:34

Re: scripting problem

Post by Softcore »

The breakpoint object doesn't have a "z"value so it is not possible to send a trigger when simply "touching" a point - you CAN however do it with breakpoint but its not simple.

Add two variables in your Breakpoint - select it and press the "x=" button
Name the first lasty and the second lastx, leave them blank

Create a script on Expression x :

Code: Select all

if (lastx!=x)
{
decl i; i=lastx-x;
selecttab(Container, firstof(i));
lastx=x;
}
In the code above replace "container" with the name of your tabbed container object - this script will select the tab based on which point moved in X axis

Create another script on Expression y

Code: Select all

if (lasty!=y)
{
decl i; i=lasty-y;
selecttab(Container, firstof(i));
lasty=y;
}
In the code above replace "container" with the name of your tabbed container object - this script will select the tab based on which point moved in Y axis

Another approach would be to use a multiball which features "z" - this could select the tab by simply touching the relevant ball and not moving it and its a lot simpler scripting wise! ;)

it would be:

Code: Select all

selecttab(Container, firstof(z));
inside your multiball object!
agentsmith23
Newbie
Posts: 9
Joined: 22 Nov 2012 12:02

Re: scripting problem

Post by agentsmith23 »

works! THANKS!!!!
Post Reply