Scaled increment
Posted: 21 Sep 2013 13:47
Hi, this is my first post.
I'm trying to move some knobs(in a container) with a single Knob, but I want the value of the knobs to move scaled from their initial value, getting incremented with the Knob; like value-scaling vs. pick up value. I managed to get it like a pick up value, but I don't get it to work like a value scaling thing.
Here's the project and the code:
Any help is appreciated;
Cheers.
I'm trying to move some knobs(in a container) with a single Knob, but I want the value of the knobs to move scaled from their initial value, getting incremented with the Knob; like value-scaling vs. pick up value. I managed to get it like a pick up value, but I don't get it to work like a value scaling thing.
Here's the project and the code:
Code: Select all
decl obj=getfirst(BigKnobsA2.Container);
if (BigKnobsA2.CustomButton.x==0) return;
else if (BigKnobsA2.CustomButton.x==1);
{
while(obj)
{
setexpression(obj,'x',BigKnobsA2.Container.Knob.x);
obj=getnext(obj);
}
}
Cheers.