Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Triggering rotation off multiple layers with sample layer.

  • Triggering rotation off multiple layers with sample layer.

    Posted by Igor Stikic on December 25, 2014 at 7:40 am

    Hi,

    I have one grid in comp with 84 images (160*160). With expression now, position of yellow layer when passes X axis of image layer rotates Y from 0-180. I will paste this expression on all image layers later. This is ok if animation only use rectangle, but I want to use other shapes (plus) Is it possible to maybe opacity (gradient…color) of this yellow layer to trigger rotation other leyers. This is expression that I use now.

    p1 = thisComp.layer(“maska”).transform.position[0];
    p2 = position[0];
    tolerance = .5;
    t1=(p1- p2)
    t2=(p2-p1)
    if (t1 > 80) 0

    else if (t1 < 80) linear(t1, 80, -80, 180, 0)
    else linear(t2, 0, 160, 180,0)

    Thank you in advance

    Igor Stikic

    Walter Soyka replied 11 years, 8 months ago 2 Members · 2 Replies
  • 2 Replies
  • Igor Stikic

    December 29, 2014 at 9:42 am

    Thank you Dave. I’m familiar with Card Dance effect and it’s not possible to create what I want with that effect. I need to have beckside animated which I had accomplished.
    Colored shape is moving from right to left.
    I want to every image layer rotate Y axis from 0-180 everytime when colored shape touch first edge of image (start rotation) and finish rotation when shape cover whole picture (or touch left edge). Images are 160*160px I manage to create rotation depending on one position point.
    Is it possible to create this with sample image expression so that images rotate depending on shape above?

    Igor Stikic

  • Walter Soyka

    December 29, 2014 at 4:03 pm

    You guide the rotation of a layer based on your shape layer with an expression and sampleImage(), but it will be very slow to evaluate and render.

    If I were you, I’d consider property-driven ways to do this instead of image-driven ways (i.e., extending Dan Ebberts’s follow-the-leader [link] expression).

    Walter Soyka
    Designer & Mad Scientist at Keen Live [link]
    Motion Graphics, Widescreen Events, Presentation Design, and Consulting
    @keenlive   |   RenderBreak [blog]   |   Profile [LinkedIn]

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