Scriptnode, how to use getNumParameters ?
-
Can you tell me what I'm doing wrong?
const dsp = Engine.createDspNetwork("dsp"); const add = dsp.create("math.add", "add"); add.setParent(dsp, -1); Console.print(add.getNumParameters());
-
@d-healey Bumpy bump
-
@d-healey There's simply no function called
getNumParameters()
, what do you want to do? Can't you just call the parameter you want by id or name usinggetParameter
/set
? -
@ustk said in Scriptnode, how to use getNumParameters ?:
@d-healey There's simply no function called
getNumParameters()
What you smokin? :p
-
@d-healey said in Scriptnode, how to use getNumParameters ?:
What you smokin? :p
That's what the console trows and the autocomplete menu of the module doesn't show it either, so there might be a discrepancy somewhere...
-
so there might be a discrepancy somewhere...
Well I'm guessing that the function isn't meant to be called on the object I'm calling it. I want to know how the function is meant to be used.
-
@d-healey Seeing that none of the functions in the DspModule API corresponds to the autocomplete menu, this is not where it should be called. Isn't the DspModule the entire DSP or the ScriptFX in question?
-
@ustk said in Scriptnode, how to use getNumParameters ?:
@d-healey Isn't the DspModule the entire DSP or the ScriptFX in question?
Possibly. I did try calling the function on other parts of the network and had the same result.