Thanks Steve!! It works like a charm.
Cuco El 03/11/2012, a las 21:07, "Steve Booth" <[email protected]<mailto:[email protected]>> escribió: Instead of using the mouse_x() and mouse_y() methods on the ViewerContext, use ‘x()’ and ‘y()’ methods. That should get you what you need. The mouse_x/y are the untranslated mouse position, x()/y() is the mouse position, mapped into the viewer window. Hope that helps. Steve From: [email protected]<mailto:[email protected]> [mailto:[email protected]] On Behalf Of Cuco Bures Sent: Saturday, November 03, 2012 1:27 PM To: [email protected]<mailto:[email protected]> Subject: [Nuke-dev] Get the mouse position on a viewer context Hi guys, Need to get the mouse position on a viewer context to then sample some channels on my plugin. Right now I'm doing it by getting the ctx->mouse_x() and ctx->mouse_y(), but these coordinates seem to be related to the viewer (obvious), but I need to get the position relative to the image (the same x and y values the viewer shows at the bottom, next to the rgba values when you move the mouse on top of it). Thanks, Cuco Bures _______________________________________________ Nuke-dev mailing list [email protected]<mailto:[email protected]>, http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-dev
_______________________________________________ Nuke-dev mailing list [email protected], http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-dev
