Your issue: “I can call the function ‘randomizeValue’ from the ‘Called when a mouse is down on this component’ menu but I can’t give a value as input for the function”
Some explanations:
Called when the mouse is down is the equivalent of “On click” event. You get a static view of the component which is in the modulator.
To reach the value of the modulator, you need to do
comp:getOwner():getModulatorValue()
To get a dynamic value changing when you turn a modulator, you should use “Called when the Modulator values changes”. You can then directly use the variable called “value”
For a randomizer:
– create a button “Randomize”
– attach a method to it “Called when the Modulator values changes”
– in that method, code the things you want to randomize
– you already have you modulators as variables (mod…)
– you can get min and max values of them by using mod:getMaxModulatorValue() and mod:getMinModulatorValue()