11-17-2011 11:23 PM
Hii,
In my program i am having two knobs i want a help that as soon as i leave the knob the value must return to 0
this is the program which i had developed please see the code and modify according to my requirements.
11-18-2011 12:40 AM
try this
11-18-2011 02:14 AM
I would not use a CPU burner loop (with no wait, consuming 100% CPU) and I also would use local variables instead of value property nodes.
Just add a second loop that just waits doing nothing unless one of the controls is relased or stop is pressed. No change needed to your code at all.
(There is still a flaw in the case where you would move the mouse outside the control before releasing. In this case the control would not reset to zero. What is the purpose of your implementation?)
11-18-2011 02:25 AM
Thank You a Lot
11-18-2011 02:26 AM
11-18-2011 02:56 AM
@ altenbach
I also mean to implement it the way you did.
what is the advantage of using local over value property.
11-18-2011 05:28 AM
can you ellaborate
11-18-2011 12:35 PM
@shankey wrote:
can you ellaborate
What post are you referring to? Elaborate on what?
11-18-2011 12:47 PM
alok.p wrote:what is the advantage of using local over value property.
Why don't you simply do the experiment to see what is more efficient? Here's a quick benchmark applications (posted here).
To understand the reason, see DFGray's answer here.
11-18-2011 09:36 PM
@ altenbach
indeed a great learning........
Thank you