Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity › Forums › Adobe After Effects › add expression to vertex

  • Mylenium

    November 29, 2006 at 6:45 pm

    You can’t. It’s as simple as that. Unless you can get a hold of a third-party plugin set called Expression Effects (which seems close to impossible), there is no way to get that functionality. There are some JSX scripts that can do something similar by creating keyframes for the mask shape, but that’s pretty much the extent of what’s doable in AE currently.

    Mylenium

    [Pour Myl

  • Mike Clasby

    November 29, 2006 at 9:55 pm

    Here is a post showing how to have a Wiggle expression affect a mask shape (wiggle the vertices).

    https://forums.creativecow.net/cgi-bin/new_read_post.cgi?forumid=2&postid=891545

    Below is how to have a mask’s vertice driven by AE’s Convert Audio to Keyframes. If you know Sound Keys (me no got) you should be able to make this work for Sound Keys, your expression linking Audio to an Attach Point will just be differet.

    In place of applying the Wiggle expression in the post above, you just need to sub in an expression so the Audio Keyframes (you generated with selecting your Audio Layer, then Animation>Keyframes Assistant>Convert Audio to Keyframes) will drive one of the Track Points you made (in the post).

    Alt Click the Attach Point Stopwatch, then pickwhip to one of the Channel Sliders in the Audio Amplitude Layer (I used Both Channels) and you get this expression:

    temp = thisComp.layer(“Audio Amplitude”).effect(“Both Channels”)(“Slider”);
    [temp, temp]

    Well, the audio will be driving your keyframes, but if you want the mask point to be where you placed it originally, then to react to the audio, you need to add “value +” to the last line:

    temp = thisComp.layer(“Audio Amplitude”).effect(“Both Channels”)(“Slider”);
    value + [temp, temp]

    This still might be a little tame, so you might need to change the last line to this (it multiplies the temp by 10):

    value + [temp*10, temp*10]

    Tweak you multiplier to taste, or use Linear Interpolation to nail it to exactly what you want. Oh, yeah, you have Sound Keys and I hear they have adjustable output thingies.

    Then select the expression then Animation>Keyframe Assistant>Convert Expression to Keyframes, and now you’ve got keyframes driven by audio for your Attach Point.

    To finish up, select the Tracker (not the track Point) and the Mask, then in the RotAE control panel, hit the Apply Mask button.

    You now have a mask’s vertice driven by audio.

  • Quinni

    November 29, 2006 at 9:56 pm

    now that’s a shame. thanks anyway mylenium.

  • Quinni

    November 29, 2006 at 10:04 pm

    thx yikesmikes!! i’ll get right on it!! i’ll keep you posted

  • Mike Clasby

    November 29, 2006 at 10:13 pm

    Yeah, we missed by about 7 seconds, I’m glad you caught it.

  • Quinni

    November 29, 2006 at 11:16 pm

    oh my!! o.O

    works like a charm!!.. rendering.. u’ll soon see a piece with 1 vertex driven by a specific frequency of a sound clip

    rendering… still rendering… still renderinggggg…

    meanwhile

    works just like u said it would..

    salut to Alejandro P

  • Mike Clasby

    November 29, 2006 at 11:48 pm

    Yeah, I’d like to see it.

    That script is great, kinda neat to use it for something other than what it was intended. Viva Alejandro P

  • Quinni

    November 29, 2006 at 11:54 pm

    helowie

    https://home.aim.avans.nl/qcnnitid/docs/test9.mov

    really small really short.. but anyway

    first vertex of the blue thingie moves like the green thingy, that is.. in speed..

    thx aloh guys
    over and out

  • Mike Clasby

    November 30, 2006 at 1:44 am

    Cool.

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