Quick Sign In:  

Forum: General Discussion

Topic: Have a script set the noise value

Dieses Thema ist veraltet und kann veraltete oder falsche Informationen enthalten.

OK this works.

effect_slider 'Noise' 1 80%

and
effect_slider 'Noise' 1 0.8

and
effect_slider 'Noise' 0.8


but when I set a variable to 0.8 noise seems to get a 100% or 1.0 like so:
set $noiseval 0.8 & effect_slider 'Noise' 1 $noiseval


which isn't what I want but I don't have a variable watcher / debugger so can't see what it's getting.
I want the slider/knob to be about at the 80% position by setting a variable that way I can use it in a more complex script.
i tried

set "$noiseval" 0.8 & effect_slider 'Noise' "$noiseval"

and tried
set $noiseval 0.8 & effect_slider 'Noise' var $noiseval

but no luck

Thanks for everyones help so far..
 

geposted Sun 15 Jan 17 @ 10:13 pm
locoDogPRO InfinityModeratorMember since 2013
 

geposted Sun 15 Jan 17 @ 10:46 pm
@locodog anyone call you a VDJ scripting genius yet? I saw that but once you kind of forced me to look it over I rethought my feeling of gain being a built-in variable and I was using a custom variable I got it to work:


set $noiseval 0.8 & get_var "$noiseval" & param_cast & effect_slider 'Noise'
 

geposted Mon 16 Jan 17 @ 12:41 am
locodog wrote :

@staff can we get a clarification on when backticks are to be used, sometimes it'll only work with 1 [leading], sometimes 2 [wrapping]


Normally you need to use 2 (wrapping) except from pads.
Depending on your script some assumptions may be made by the software and a single backtick may work where 2 are expected. However you should not rely on this.
 

geposted Mon 16 Jan 17 @ 6:46 am


(Alte Themen und Foren werden automatisch geschlossen)