Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Using sampleImage in order to control rotation of a layer

  • Using sampleImage in order to control rotation of a layer

    Posted by Max Goergen on January 8, 2014 at 3:58 pm

    Hello wise guys,

    I´m trying to find an expression that allows me to control the rotation of several seperate layers (in my case hundrets of tiny white stripes)
    driven by the color of a Clip in the background.

    The best thing would be if the clip could only be black and white.

    So that the 360-degree rotation is controlled by the range of colors between white and black.

    Someone of you able to give some help?

    (sorry for my bad english)

    Thanx for any answer!
    thanx for this great source of informations!
    Max

    Max Goergen replied 12 years, 4 months ago 2 Members · 2 Replies
  • 2 Replies
  • Tom Holmes

    January 8, 2014 at 5:12 pm

    Hi Max!

    i have a solution that may help you towards your goal.

    First of all create an adjustment layer and to it add a slider control and a color control.

    Take the layer you want to have its colour sampled and apply the fill effect to it. Then alt-click the slider stopwatch at pickwhip it to the color control. This will return the luminance value of the filled layer (between 0 and 1) times this expression by 10 (*10) and it will change the value from 0 – 10.

    now to sample the colour from a clip/image and have that effect the rotation combine this technique with the one Dan Ebberts has outlined in the following post.

    https://forums.creativecow.net/thread/227/11270

    Hope this Helps

    Tom

  • Max Goergen

    January 13, 2014 at 11:52 am

    Dear Tom,
    Thank you very much for you fast and very helpful answer!!
    It helped me solve my problem.

    Wish you all the best.
    Max

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