Doh! That was it! Thanks so much. I guess I always assume that the order for x and y is that way around and that's what got me. Thanks again!!
On Thu, Sep 5, 2013 at 1:58 PM, Paul Miller <p...@fxtech.com> wrote: > Check your X & Y arguments. They seem to be swapped. > > On Sep 4, 2013 9:29 PM, "Jose Fernandez de Castro" <pixelcowbo...@gmail.com> > wrote: >> >> I have a plugin that tries to access specific DeepPixels, but I'm >> getting constant crashes. To illustrate the problem, I'm using as an >> example the source code for DeepCrop. >> >> If I replace the following line: >> DeepPixel pixel = inPlane.getPixel(it) >> >> For: >> DeepPixel pixel = inPlane.getPixel(it.x,it.y) >> >> It crashes everytime. Any idea what I could be doing (or >> understanding) incorrectly? >> >> from DeepPlane.h: >> >> DeepPixel getPixel(int y, int x) const; >> >> /* >> * get the DeepPixel at the given coordinates >> */ >> DeepPixel getPixel(DD::Image::Box::iterator it) const >> { >> return getPixel(it.y, it.x); >> } >> >> Seems like I should be getting the same result... Thanks for your help >> in advance! >> >> >> -- >> Jose Fernandez de Castro >> _______________________________________________ >> Nuke-dev mailing list >> Nuke-dev@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/ >> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-dev > > > _______________________________________________ > Nuke-dev mailing list > Nuke-dev@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/ > http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-dev > -- Jose Fernandez de Castro _______________________________________________ Nuke-dev mailing list Nuke-dev@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-dev