Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Rollover Color Change

  • Rollover Color Change

    Posted by Ed Morande on March 7, 2008 at 7:55 pm

    Hey everyone. I had posted this in the regular AE forum and I was helped out a lot. I was led to this page:

    https://www.motionscript.com/design-guide/sample-image.html

    I’m simply needing the same idea, it’d just be one object, not a bunch of arrows though. My only problem is that I’m not running CS3. So I was hoping someone could help find a way to do this in AE 7

    Just for another visual example, it’s pretty similar to when you move your mouse around in AE regularly and the color that it’s over shows up in that little box in the Info Panel. I only need to grab that color and put it on screen.

    I’m hoping someone can help me with some direction on this one and hoping that I won’t have to try and do it all by hand.

    Thanks in advance!

    Ed Morande replied 18 years, 2 months ago 4 Members · 4 Replies
  • 4 Replies
  • Dan Ebberts

    March 7, 2008 at 11:37 pm

    I can’t think of any way to do that in AE7 except with Digital Anarchy’s Anarchy Toolbox (color sampler effect).

    Dan

  • Filip Vandueren

    March 8, 2008 at 3:10 pm

    Do you need the actual value of the color to do a calculation, or do you just want to fill another shape or layer with the color ?

    If you just need to fill a layer with the color of a different layer at a certain pixel value you can try this simple recipe:

    make a duplicate of the layer you want to sample.
    scale it up to at least 100*comp width. For example 102400 %.
    Set it to draft quality.

    add this expression to anchorPoint:

    p=value;
    [Math.round(p[0]),Math.round(p[1])]+[0.5,0.5];

    now scrub the anchorpoint: that’s your sample location.

    The screen should be filled with the color of the position you’re sampling. Just apply a layer-trackMatte if you want this color in a small section or on a text or whatever.

  • Lloyd Alvarez

    March 10, 2008 at 3:10 pm

    Very clever work around Filip!

    https://aescripts.com

  • Ed Morande

    March 12, 2008 at 2:38 pm

    Wow Filip, it’s going perfectly now! Thanks so much for the help!!

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy