Page 1 of 1
Why I'm not able to redraw a line?
Posted: Wed Nov 11, 2015 4:57 pm
by Nowhk
This is the situation I have:

- redraw.png (24.01 KiB) Viewed 8374 times
I'd like to redraw the line (i.e. its height) every time I tweak the knob.
I can see the value change using "watch", but the line is not redraft. Where am I wrong?
Hope you can help me.
Thanks for your time, as usual!
Re: Why I'm not able to redraw a line?
Posted: Wed Nov 11, 2015 5:06 pm
by tulamide
All inputs you name are automatically converted to an instance variable. So your input "height" is also available as @height. But you also declare another variable as @height. Rename one of them.
Re: Why I'm not able to redraw a line?
Posted: Wed Nov 11, 2015 5:08 pm
by Nowhk
tulamide wrote:All inputs you name are automatically converted to an instance variable. So your input "height" is also available as @height. But you also declare another variable as @height. Rename one of them.
Uhm, nothing change


- Immagine.png (23.35 KiB) Viewed 8371 times
moving knob, I can't see any redraft....
Re: Why I'm not able to redraw a line?
Posted: Wed Nov 11, 2015 5:14 pm
by Nowhk
Oh no wait, it works! Just I can't see move it in the preview in the top! Thanks
