[Bf-committers] RE: [Bf-python] New Python Function - Patch

Martin Poirier theeth at yahoo.com
Tue Feb 22 15:22:49 CET 2005


--- Alexander Ewering <blender at instinctive.de> wrote:

> 
> On Mon, 21 Feb 2005, Austin Benesh wrote:
> 
> > Ok, here is the patch for the documentation. The
> way this function works:
> >
> > getPixelColor(x,y)
> >
> > X,Y are (obviously) the coordinates of the pixel
> you want to know the color
> > of. It returns 4 floats in the range of 0-1 (not
> 0-255) in the form of
> > [r,g,b,a]. I am going to start working on a
> setPixelColor(x,y) as well.
> 
> Just a random comment: I would think that such a
> method to access single
> pixel values with one function call per pixel is
> pretty useless unless you
> have a supercomputer.
> 
> What would probably be much more useful is a
> function returning a whole
> array (or whatever it's called in python) instead of
> a single pixel.

Actually, what would be nice is if it would return a
python wrapper around the ImBuf that overloaded the []
operator to access single elements [(x,y)] and slices
[(x1,y1):(x2,y2)]. Just a silly thought.

Martin

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


More information about the Bf-committers mailing list