Quick Sign In:  

Forum: General Discussion

Topic: Have a script set the noise value

This topic is old and might contain outdated or incorrect information.

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..
 

Posted Sun 15 Jan 17 @ 10:13 pm
locodogPRO InfinityModeratorMember since 2013
 

Posted 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'
 

Posted 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.
 

Posted Mon 16 Jan 17 @ 6:46 am


(Old topics and forums are automatically closed)