This is what i try to do:
I want to create 4 buttons that activate AutoCut for 1, 1/2, 1/4 and 1/8 Beats.
My AutoCut plugin can only double or half the beats for the effect.
This is why i wrote a little detection script to figure out what value the effect currently has and what it needs to do to get to the value i need.
Basicly it looks like this:
get_effect_string 'AutoCut' 1 & param_equal '1 Beats' ? effect_button 'AutoCut' 1
get_effect_string returns the string of what the plugin is currently set to.
This could be '1 Beats', '1/2 Beats' [...]
With param_equal i ask if it matches the string i want to match (in this case '1 Beats')
And with effect_button 'AutoCut' 1 i want to change the value according to what it was.
All these functions work perfectly alone, but in this combination it just won't work!
It really bothers me because when you write something like
get_effect_string 'AutoCut' 1 & param_equal '1 Beats' ? play_pause
it works! But not with effect_button which works in every other occasion!
This really bothers me because it's the only way to make this effect usable for me.
I think it is a bug, but i might also be my stupidity...
Any help is appreciated!!!
Regards, Daniel
PS: Sorry if it's confusing, i tried my best to make this post not that messy
I want to create 4 buttons that activate AutoCut for 1, 1/2, 1/4 and 1/8 Beats.
My AutoCut plugin can only double or half the beats for the effect.
This is why i wrote a little detection script to figure out what value the effect currently has and what it needs to do to get to the value i need.
Basicly it looks like this:
get_effect_string 'AutoCut' 1 & param_equal '1 Beats' ? effect_button 'AutoCut' 1
get_effect_string returns the string of what the plugin is currently set to.
This could be '1 Beats', '1/2 Beats' [...]
With param_equal i ask if it matches the string i want to match (in this case '1 Beats')
And with effect_button 'AutoCut' 1 i want to change the value according to what it was.
All these functions work perfectly alone, but in this combination it just won't work!
It really bothers me because when you write something like
get_effect_string 'AutoCut' 1 & param_equal '1 Beats' ? play_pause
it works! But not with effect_button which works in every other occasion!
This really bothers me because it's the only way to make this effect usable for me.
I think it is a bug, but i might also be my stupidity...
Any help is appreciated!!!
Regards, Daniel
PS: Sorry if it's confusing, i tried my best to make this post not that messy
Inviato Sat 02 May 15 @ 3:36 pm
Basically try this:
param_equal get_effect_string 'AutoCut' 1 '1 Beats' ? effect_button 'AutoCut' 1 on
param_equal get_effect_string 'AutoCut' 1 '1 Beats' ? effect_button 'AutoCut' 1 on
Inviato Sun 03 May 15 @ 1:07 am
@PhantomDeejay It does not work =(
I am running build 2177, could it be a bug that is fixed in a newer build?
I am running build 2177, could it be a bug that is fixed in a newer build?
Inviato Sun 03 May 15 @ 7:58 am
unIimited wrote :
My AutoCut plugin
Do you mean Audio Cut Effect ?? If not, can you share that ? Have you tried similar scripts with some other Plugins ?
Inviato Sun 03 May 15 @ 1:17 pm
get_effect_string "AutoCut" 1 & param_equal "1 Beats" ? effect_button 'AutoCut' 1 on
Inviato Sun 03 May 15 @ 1:25 pm
locodog wrote :
get_effect_string "AutoCut" 1 & param_equal "1 Beats" ? effect_button 'AutoCut' 1 on
It works perfectly! Thank you a lot!!
Inviato Wed 06 May 15 @ 12:29 pm
djdad wrote :
Do you mean Audio Cut Effect ?? If not, can you share that ? Have you tried similar scripts with some other Plugins ?
unIimited wrote :
My AutoCut plugin
Do you mean Audio Cut Effect ?? If not, can you share that ? Have you tried similar scripts with some other Plugins ?
I don't know anymore from which source i have it but i think it's a popular one.
You will probably recognise it from this screenshot: http://prntscr.com/7290bi
And yes, i have tried and they all worked.
But locodog already helped me out. I don't know what my mistake really was but his script works fine =)
I guess it's some more complex logical issue that i just don't see x)
Inviato Wed 06 May 15 @ 12:33 pm
For some reason the button wanted a on or off state, I can't see why but it did.
Inviato Wed 06 May 15 @ 2:00 pm