Rigging

Rigging101 » Rigging128

Expressions and a pendulum (2 posts)

About This Topic

Tags

No tags yet.

  1. ryangriffin

    offline
    Member
    Posted 7 years ago
    #

    Heya all,
    I am trying to write and expression that would make an object work like a pendulum based on time. So for instance I want a ball to start at translateY -1, then at frame 30 it would be at translateY 1. then at frame 60 it would move to translateY -1 and so on as the time line plays.
    I know how to get the ball moving, I just can't seem to get it going in reverse after frame 30.
    if time < 1
    ball.translateY = time * 2;

  2. Javier "Goosh" Solsona (admin)

    offline
    Key Master
    Posted 7 years ago
    #

    Is it a pendulum you want to do?
    a pendulum would rotate no? not translate.

    it seems to me a pendulum would work as a sine wave. I would write an expression with sine on it to get that going. I guess you could input that into a translation. It's all the same

    Anyway. Not sure what the exact formula it would be, but I would use a sine wave to go from positive to negative

    Hope it helps

    Javier

Reply

You must log in to post.

Rigging101 » Rigging128
1,099 posts in 307 topics over 110 months by 188 of 8,226 members. Latest: fashionpvp, d2q4p5z2j, gasheldonl