Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects an alternative to using null object to cycle position change?

  • an alternative to using null object to cycle position change?

    Posted by Ninetto Makavejev on April 18, 2007 at 4:06 pm

    Hello,
    I am dealing with a very long graphic background, covering a 30 minute timespan. Problem is, like every 60 seconds I need to shift the background position to the left by a set (nonchanging) factor. Basically pushing it thru the frame in incremental jolts… 30 minutes long.

    There are a number of reasons why I would prefer NOT parenting this layer to a Null-Object and having to manually set position keyframes for the null objects 60 times.

    Anybody got an easy solution, pre-packed expression for this one?
    Thanks in advance…

    best regards,
    ninetto

    Ninetto Makavejev replied 19 years, 1 month ago 2 Members · 3 Replies
  • 3 Replies
  • Dan Ebberts

    April 18, 2007 at 4:28 pm

    You could use a position expression like this:

    period = 60; // how often to shift position (seconds)
    shift = -5; // how far to shift (pixels) (left is negative)

    offset = Math.floor(time/period)*shift;
    value + [offset,0]

    Dan

  • Ninetto Makavejev

    April 18, 2007 at 7:05 pm

    Geeee, Dan thanks… I’ll give it a try.

    Up until now, any expression that needed more than me pointing my mouse at it and typing maximum two buttons scared me to death.

    But if it will get the computer to count the grains of sand, instead of me, WELL then what’s to fear!

    Much appreciated.

    regards,
    ninetto

  • Ninetto Makavejev

    April 20, 2007 at 7:12 pm

    Dan, your expression formula worked like a charm! Thanks, it saved me from having to set 90 keyframes by hand…
    Taught me a thing about the power of numbers too.

    hats off 2 ya,
    ninetto

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