Hi again,
it’s me with another norns scripting question:
I want to have my script hide a params action after it’s used (a timer then counts down and sets it to visible again). Now my params:hide function is working fine when used as is in the redraw() function but in any other case I haven’t gotten it to work. See the following code for reference:
function init()
-- Define default all steps on & add random mutes function to params page
step_on = {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2}
params:add{type="trigger", id="generate random mutes",action=function() gen_rnd_mutseq() end}
end
function gen_rnd_mutseq()
rand_allow = 0
params:hide("generate random mutes")
print(rand_allow)
end
So the print(rand_allow) at the bottom returns 0 when the I trigger the param from the edit menu. Why then doesn’t the params:hide() function hide the param?
Thanks in advance and cheers,
Leon