Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Filter path property from others for looping tool

  • Filter path property from others for looping tool

    Posted by Frank Mansfield on November 25, 2020 at 2:17 am

    Hi!

    I’ve been using a little looping script that I made a few years ago to automatically add looping expressions to properties. It basically has some settings in the tool window then applies different looping expressions to the properties depending on what you’ve selected.

    The problem is that if I try to apply it to a path property in a shape layer it will apply the expression but then turn the expression off (because path properties can’t use loopIn or loopOut).

    Whenever I’ve needed to loop a path property I’ve just pasted in the ol’ faithful Dan Ebberts expression that does just that, but it would be great to build this into my tool.

    Since it doesn’t throw up an error to catch, can anyone point me in the right direction for how I could filter out the path properties from the properties that work in order to apply the other expression?

    If it isn’t glaringly obvious from this, scripting is pretty far out of my comfort zone, but my ability to copy and paste other people’s hard work is second to none… 😉

    Cheers!
    -f

    Frank Mansfield replied 5 years, 5 months ago 2 Members · 2 Replies
  • 2 Replies
  • Matt Volp

    November 26, 2020 at 12:32 pm

    A quick and dirty workaround would be to iterate back through your selected properties after applying the initial loop expression and identify those which have their expression turned off and apply the path loop expression to just those.

  • Frank Mansfield

    November 26, 2020 at 1:58 pm

    Thanks Matt!

    I was literally trying that just last night, but came across the problem that it doesn’t bring up an error unless it’s before or after the keyframe range. Although now I come to think of it, if we’re being *really* filthy, I could just move the playhead to after the last keyframe to force the error…

    Like you say, still feels a bit hacky though. Still, I’m not painting the flippin’ mona lisa here, am I? 😉

    Cheers dude!
    -f

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