Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions 2 sided layer in AE

  • 2 sided layer in AE

    Posted by Shnitzel3 on October 27, 2005 at 1:53 am

    I am trying to rotate a 3d layer in the y axis, and have the back of the layer be a different image. Ive tried precomping 2 layers, Ive also tried parenting the 2 layers and seperating them along the z axis by .5. None of this worked. Please if anyone knows how to do this with an actual edit I would greatly appreciate it.

    Thank you

    Eyal

    Dave Seidman replied 14 years, 4 months ago 4 Members · 3 Replies
  • 3 Replies
  • Yussef Cole

    October 27, 2005 at 4:31 pm

    Well if you have card wipe or card dance you can easily create a 2 sided layer. It comes only with professional after effects 6 and up. Otherwise you’re going to have to tweak in 3d space a bit. try offsetting the back image. And if you’ve pre-comped remember to collapse transformations in the main comp. (that tiny * button in the timeline window)

    Yussef

  • Roland R. kahlenberg

    October 27, 2005 at 4:42 pm

    I just used this Expression. Got it from the Dan Ebberts bag of Expression tricks a while back-

    Switch off the Back Layer. Apply the following Expression to the Front Layer. Ensure that the Blend effect is applied to the Front Layer. Then apply this expression to the “Blend With Original” parameter

    LayerName=effect(“Blend”)(“Blend With Layer”).position;
    a = to_world_vec([0,0,1]);
    b = LayerName – to_world(anchor_point);
    c = dot(a,b)/length(b);
    if (c > 0){
    0
    }else{
    100
    }

    HTH
    Roland Kahlenberg
    broadcastGEMs
    customizable animated backdrops with Adobe After Effects project files

  • Dave Seidman

    December 27, 2011 at 5:18 pm

    Here’s a simpler version you can use for a simple page turn effect:

    Put the Blend effect on the “Front” of the page, add a rotationY key and tween it from 0 to 180. The “Back” of the page just needs to be in the comp as an invisible layer (also doesn’t need to be 3D or have motion blur turned on). In the Blend effect set the Blend with Layer to the “Back” page and add the expression below to the Blend With Original parameter.

    If you want to get fancy add a Mesh Warp with a 2×2 grid and bend one of the corners and keyframe the distortion mesh so it looks like the page is being pulled by hand.

    if(rotationY > 90) { 0 }
    else { 100 }

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