Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Expression for Layer Ordering?

  • Expression for Layer Ordering?

    Posted by Pat Bray on August 11, 2011 at 5:57 pm

    Hi

    I wondered if there was a way of reordering layers at certain points during the animation using an expression? I’m having to separate some elements driven by nodes onto different layers, but then as they pass across each other at different stages, the ones in the foreground pass behind instead of in front of the other objects (hope this makes sense!) as they occupy their own z space.

    Any ideas?

    Brad Pickford replied 14 years, 8 months ago 2 Members · 1 Reply
  • 1 Reply
  • Brad Pickford

    August 12, 2011 at 12:37 am

    Hi Pat,
    Not to sure if I understand you correctly but I am building a character rig and need to have an arm come from behind to in front of the body. I basically had had 2 arm layers on in front and one behind and used an if/else statement to control when a layer was visible. I assume you could do the same with z space as well. maybe something like this…

    Sorry if I have got it wrong,
    Brad

    if (thisComp.layer("Layer A").transform.position[3] >= 1000) 100 else 0

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