Why I'm not able to redraw a line?

For general discussion related FlowStone
Post Reply
Nowhk
Posts: 275
Joined: Mon Oct 27, 2014 6:45 pm

Why I'm not able to redraw a line?

Post by Nowhk »

This is the situation I have:

redraw.png
redraw.png (24.01 KiB) Viewed 8382 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!
tulamide
Posts: 2714
Joined: Sat Jun 21, 2014 2:48 pm
Location: Germany

Re: Why I'm not able to redraw a line?

Post 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.
"There lies the dog buried" (German saying translated literally)
Nowhk
Posts: 275
Joined: Mon Oct 27, 2014 6:45 pm

Re: Why I'm not able to redraw a line?

Post 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
Immagine.png (23.35 KiB) Viewed 8379 times

moving knob, I can't see any redraft....
Nowhk
Posts: 275
Joined: Mon Oct 27, 2014 6:45 pm

Re: Why I'm not able to redraw a line?

Post by Nowhk »

Oh no wait, it works! Just I can't see move it in the preview in the top! Thanks ;)
Post Reply