Forum: Poser Python Scripting


Subject: ockham .....hmm.......not quite a poser script but......

anxcon opened this issue on Feb 10, 2005 ยท 5 posts


anxcon posted Thu, 10 February 2005 at 1:14 PM

ockham, that anaglyph script you made, wondered if you can either add to it, or create a new script has a window that comes up, and it has a pic window and below is a number box, and a check box that says "ignore black" and then a button saying "balance" it takes the "out" pic and edits it with the following (this isnt correct code lol just showin what i want) round valuebox up to full number //7.5 becomes 8 load pixel (R, G, B) if R < valuebox then ...R = valuebox if (G+B) < valuebox then ...(no time today to think, add to B and G so it keeps same ratio, ie 0B/10G = 0B/20G if valuebox = 0 or 10B/10G becomes 15B/15G, just so B and G stay same ratio and the total of B+G=valuebox in end) loop to top until all pixels finished save done


ockham posted Thu, 10 February 2005 at 1:32 PM

The part about RGB is clear, from your previous comments about color balance. But what's the Ignore Black choice?

My python page
My ShareCG freebies


anxcon posted Thu, 10 February 2005 at 7:59 PM

if the pixel is 0R/0G/0B then it just skips that pixel, if checked that way a black background can be ignored cuz a background in an anaglyph pic you want just that, a background endless space behind the object that wont show as the image


ockham posted Thu, 10 February 2005 at 10:49 PM

Attached Link: http://ockhamsbungalow.com/PPP/Anaglyph11.zip

Try this. The R,G,B limits seem to work right. I'm not convinced that the Ignore Black works, because I couldn't be sure that there was any pure (0,0,0) black in the scene itself!

My python page
My ShareCG freebies


anxcon posted Fri, 11 February 2005 at 2:18 AM

will test when i wake up n get home thx :) btw all you need to do is set poser background to black heh