Cuco,

 

Okay, this is even more confusing.  You're moving the mouse over the image
in the viewer, and you want to re-render the entire image, and the output of
the node in real time?  Really?  That's thousands of script-updates per
second - probably not something you want to do in any real-world situation.
Changing the 'multiply' slider on a Grade node is fundamentally a different
operation than moving your mouse over the viewer area.  What I would do, if
you really want to sample a channel on the image is to only update the
display when you actually 'click' on a pixel in the viewer.

 

 

Steve

 

From: [email protected]
[mailto:[email protected]] On Behalf Of Cuco Bures
Sent: Wednesday, November 21, 2012 8:31 AM
To: Nuke plug-in development discussion
Subject: RE: [Nuke-dev] Viewer context on mouse drag laziness

 

The mouse drag is sampling some channels of the input0 and storing the
result on one knob. The node must recalculate the image based on that...
same thing as using the color picker on, let's say the multiple knob, on a
grade node. The grade node changes to show the result in real time while
dragging on the viewer. This is the behavior I want to achieve. 

 

Does it make sense?

 

I'll give your answer a try...

 

Cheers,

Cuco

 

  _____  

From: [email protected]
[[email protected]] on behalf of Steve Booth
[[email protected]]
Sent: 21 November 2012 16:24
To: 'Nuke plug-in development discussion'
Subject: RE: [Nuke-dev] Viewer context on mouse drag laziness

Call 'asapUpdate()' on your Op after you make the changes, but it's not
clear from your post how the output of the node changes based on mouse
movement.

 

Steve

 

From: [email protected]
[mailto:[email protected]] On Behalf Of Cuco Bures
Sent: Wednesday, November 21, 2012 3:30 AM
To: Nuke plug-in development discussion
Subject: [Nuke-dev] Viewer context on mouse drag laziness

 

Hi guys, 

 

I'm changing the values of a knob when the user drags the mouse on the
viewer. Using Knob->set_value() to do so.

 

Can see the values changing all the time while dragging the mouse, but the
plugin doesn't get re-rendered until mouse release.

 

How can I force the plugin to re-render?

 

I was expecting the node working similar to a grade node when you use the
color picker, that constantly updates the image so you can easily see what
the result is...

 

Thanks in advance,

Cuco Bures

 

P.S. Btw, is there any better way to set the values of the knob other than
that?

_______________________________________________
Nuke-dev mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-dev

Reply via email to