Troubleshooting

Isit possible to store and load presets of faders positions?

Started by jenz on .

Sign in or create an account to join the conversation.

9 posts

Subject: Re: Isit possible to store and load presets of faders positi
Does it works with faders too? I have replaced
The "Multislider" with the name of my fader
in the script but it dosent work... What am I
doing wrong?
Subject: Re: Isit possible to store and load presets of faders positi
it wouldn't work with Faders because faders cannot be multi - like the sliders. Create an empty expression, call it Multifader, and in there type

{Fader1.x, Fader2.x, .......} and so on. be carefull to use the names of your faders in there.

Replace in the codes given wherever you see
MultiSlider.x

with
Multifader
and wherever you see
Multislider.x[]
with
Multifader[]
..... Be carefull to not change any data inside the brackets - for example if you have "Multislider.x" replace it "Multifader"

I think it should work then!
Subject: Re: Isit possible to store and load presets of faders positi
Ok here you go, here's an example!

tutorial_storing_faders.jzml

@Macciza if you read this: if we have a vector

Multifader= {Fader1.x, Fader2.x, Fader3.x}

Is there a way to quickly retrieve the contents of the vector as strings I mean we cant script, for example

for (i=0; i<16; i++)
{
setexpression('MultiFader','x', 12+i)
}

Actually what Im asking is.....can what I achieved above by creating two vectors, one for the actual fader values and one for the Fader object names can be achieved in any other way, more elegantly?
I guess it would involve "for" loops and getobject(), nextobject() functions correct?
Subject: Re: Isit possible to store and load presets of faders positi
No wait I've got it!

here it is! declaring the first object (fader) as a variable, and getting the next one in each iteration of "i".....Hoorayyyy!

tutorial_storing_faders2.jzml

@Jenz.....be carefull THIS version will only work if your faders are one after the other in the "tree" structure - in other words if you have named them wisely enough so that they appear alphabetically one next to the other. Of course yous till have to fill the "Multifaders" vector with the correct values (fadernames followed by .x)

If for some reason you cant do this....then try the previous example and of course replace in the vectors "Multifaders" and "Faders" with the actual names of your faders.