Replies: 1 comment 4 replies
-
For mouse callbacks this is the way it works :
I got it working for both the slider and button on mouse down On modulator value change it's another story because the arguments of the function are different, it's on modulator level, so it's "mod", not "comp" as you can see.
|
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a slider and a button both calling the same function to get the name. When I use
local mName = L(comp:getOwner():getName())
I get a nil value error for 'getOwner()' when clicking on the button, while clicking on the slider it works OK.
When I use
local mName = L(comp:getName())
I get a nil value error for 'getName()' on the slider and now the button works OK.
The call for the slider is on mouseUp, the call for the button is 'when the modulator value changes'
So this inconsistency(?) puzzles me. Any help much appreciated. I have attached a panel as example.
getName issue.bpanelz.zip
Beta Was this translation helpful? Give feedback.
All reactions