colorAtPoint

when I type this with the appropriate flags I get a nice floating point number. How do I use this number, specifically to drive a custum attribute from frame to frame?

TIA

T

Here's a tutorial that explains it really well:

http://www.anim.dk/scripts.asp?action=show...;id=17&cat=

Cheers,

tj

Thanks! I ended up doing something like this:

global proc analyzeColor()
{
float $colorB[];
$colorB = colorAtPoint file1;
$colorMult = $colorB[0];
$finalPos = $colorMult * 10;
$comandValue = setAttr "nurbsSphere1.translateY" $finalPos;
}
analyzeColor();

My biggest problem was the using these crazy little guys around the colorAtPoint command.

I just plopped that into an expression and viola, analyzes on every frame.

T