Using the suckah object
Suckah can be used much like the eyedropper tool in photoshop to grab the current color value of any screen pixel. This is useful in creating color palates from images, chromakeying, color tracking, UI design, and more.
- Jitter Tutorial 10: Chromakeying, introduces the application of suckah in chromakeying. The suckah object sits on top of the pwindow displaying the source video, allowing you to click directly on the color you want to key out.
- Jitter Tutorial 25: Tracking the Position of a Color in a Movie, offers a method of combining suckah with the jit.findbounds object to track colored objects. Note that this functionality is not built in to the tutorial patch, but is in the text portion of the tutorial reference.
suckah Tips and Workarounds
- Placing suckah on top of a jit.pwindow is a useful and intuitive way to get information about the color value of a particular pixel.
- suckah can easily be used like an eyedropper tool, allowing you to quickly create palates or alter the appearance of your UI. This patch gives a simple example:
- An alternative method for getting pixel values from a matrix is to send the "getcell" message to a jit.matrix. This patch uses the mouse-over capability of the jit.pwindow object to emulate the click-to-output behavior of suckah.
Third-Party Max externals similar to the suckah object
Maxobjects.com listing for the suckah object
People who looked at/used this object also looked at....
Errors or Clarifications
(please list things that you believe to be errors or omissions from the existing refpage)
- In the existing refpage it states that output is 3 ints for the RGB values of the pixel at the specified coordinate. This is only true when the compatibility attribute has been set to 1. suckah defaults to outputting RGBA float values in the range 0. - 1. The compatibility attribute (default = 0) allows you to switch to legacy 0 - 255 integer output, while the outputalpha attribute (default = 1) allows you to disable alpha reporting.