Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Forums Adobe After Effects Expressions Static values to sequence of layers based on parent layer w/ sequence of keyf…

  • Static values to sequence of layers based on parent layer w/ sequence of keyf…

  • Eric Peel

    October 16, 2021 at 11:59 pm

    I’m trying to color a sequence of layers based on a parent layer with keyframes prepared and aligned precisely to each layer’s inpoint.

    The keyframes are sourced from a MIDI export, and I’m converting the MIDI velocity values to color hues in an expression on a parent layer.

    I’ve tried a few different expressions, but I’m only able to offset the sequence of keyframes, not grab one and hold it staticly, if that makes sense.

    I’m hoping for a single expression that I can copy and paste to over 1000 layers.

    Thanks much in advance.

  • Eric Peel

    October 17, 2021 at 12:08 am

    Solved it.

    “notes” is the comp and “Null 1” is the parent layer. The code below goes into the Hue of the Change Color effect of every music note layer.

    comp(“notes”).layer(“Null 1”).effect(“Change Color”)(“Hue Transform”).valueAtTime(inPoint);

  • Eric Peel

    November 9, 2021 at 2:52 pm

    Correction:

    comp(“notes”).layer(“Null 1”).effect(“Change Color”)(“Hue Transform”).valueAtTime(time-inPoint);

Viewing 1 - 3 of 3 posts

Log in to reply.

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