Creative COW SIGN IN :: SPONSORS :: ADVERTISING :: ABOUT US :: CONTACT US
Creative COW's LinkedIn GroupCreative COW's Facebook PageCreative COW on TwitterCreative COW's Google+ PageCreative COW on YouTube
ADOBE AFTER EFFECTS:HomeForumBasicsExpressionsTutorialsPodcastsAE TechniquesTrainingCreative Cloud DebateFAQ

Re: Grab average color of layer to determine the color for another effect?

COW Forums : Adobe After Effects

FAQ   •   VIEW ALL   •   ADD A NEW POST   •   PRINT
Share on Facebook
Respond to this post   •   Return to posts index   •   Read entire thread


Kevin CampRe: Grab average color of layer to determine the color for another effect?
by on May 22, 2012 at 2:36:47 pm

actually, i'll make one slight change to the expression.

target = thisComp.layer("Royal Blue Solid 2"); // this would be the layer that you want to sample the color from
h = target.height / 2;
w = target.width / 2;
target.sampleImage(target.anchorPoint, radius = [w, h], postEffect = true, t = time);


the change was to the last line, rather than using the anchorPoint of the layer with the effect for the 'sample point', it's probably better to use the target layer's anchor point.

Kevin Camp
Senior Designer
KCPQ, KMYQ & KRCW


Posts IndexRead Thread
Reply   Like  
Share on Facebook


Current Message Thread:




LOGIN TO REPLY



FORUMSTUTORIALSMAGAZINESTOCKYARDVIDEOSPODCASTSEVENTSSERVICESNEWSLETTERNEWSBLOGS

Creative COW LinkedIn Group Creative COW Facebook Page Creative COW on Twitter
© 2013 CreativeCOW.net All rights are reserved. - Privacy Policy

[Top]