Activity › Forums › Adobe After Effects › Color Picker Samples
-
Color Picker Samples
Posted by Riccardo Sinti on May 20, 2009 at 9:19 pmI was wondering if there is a way in AE (or a work around) to make color picker samples and have them update during a color correction like is possible in photoshop.
If not there really should be. With all the CC tools in AE it would be nice if I could see color info change on a point with out having to move my cursor over it.
Thanks!Riccardo Sinti replied 17 years, 3 months ago 2 Members · 3 Replies -
3 Replies
-
Todd Kopriva
May 21, 2009 at 2:37 amI’m playing around with the sampleImage expression method right now to see if I can’t whip together a little something. The idea is simple: Have a text layer with its Source Text property tied to the output from sampleImage, with the input to sampleImage being a point control that you can drag someplace and then just leave it while you fiddle with your colors.
———————————————————————————————————
Todd Kopriva, Adobe Systems Incorporated
putting the ‘T’ back in ‘RTFM’ : After Effects Help on the Web
——————————————————————————————————— -
Todd Kopriva
May 21, 2009 at 3:41 amI’m not saying that this is the most elegant solution, but here is what I came up with while waiting for some chicken to defrost.
On the layer that you want to measure, add a Point Control effect (one of the Expression Control effects). You can place the Point Control effect’s crosshair (effect control point) wherever you want.
Create a new text layer above the layer that you want to measure, and add this expression to the Source Text property:
targetLayer = thisComp.layer(thisLayer.index+1);
samplePoint = targetLayer.effect("Point Control")("Point");
sampleRadius = [1,1];
sampledColor_8bpc = 255 * targetLayer.sampleImage(samplePoint, sampleRadius);
R = Math.round(sampledColor_8bpc[0]);
G = Math.round(sampledColor_8bpc[1]);
B = Math.round(sampledColor_8bpc[2]);
A = Math.round(sampledColor_8bpc[3]);
outputString = " R: " +R+ "\r G: " +G+ "\r B: " +B+ "\r A: " +A
This will create a text layer that reports 8-bpc RGBA values for the point under the crosshair for the Point Control effect. In the image that I’ve embedded below, you can see that the effect control point is in the upper center, in the nearly pure white clouds, and the RGBA values reflect this.
You can obviously get a lot fancier with this, but this should be enough to get you started.
———————————————————————————————————
Todd Kopriva, Adobe Systems Incorporated
putting the ‘T’ back in ‘RTFM’ : After Effects Help on the Web
——————————————————————————————————— -
Riccardo Sinti
May 21, 2009 at 3:18 pmWow, that is really cool.
I’m using an Adjustment Layer to do the color correct using levels.
At first I put the point control on the layer I wanted to correct, but the rgb values didn’t update as I manipulated my Adj, layer.
So i put the PT control on the Adjustment layer after the CC effects and it works like a charm.
Now I want to explore other uses of point control.
I wish AE would incorporate some color sampler tools in future updates.Thanks Again!
Thank You
Reply to this Discussion! Login or Sign Up
