Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Maxon Cinema 4D offset start on formula deformer

  • offset start on formula deformer

    Posted by Peter Zeet on May 23, 2019 at 6:23 pm

    Hi!
    I’m sure there is a way to offset the start of a simple formula sin animation, but I don’t know how to tweak t to tell the wavy animation start at a giving frame. I come from After Effects echosystem, and I don’t know how to tweak the formula to add an equivalent to valueAtTime
    or maybe via xpresso? (no idea neither)

    any ideas will be much appreciated!

    Peter Zeet replied 6 years, 12 months ago 3 Members · 12 Replies
  • 12 Replies
  • Jim Scott

    May 23, 2019 at 7:03 pm

    A few ideas:

    If you want the formula to be active but not animating, and then to begin animating at a certain frame, keyframe the project time from 0 to 1 at that frame.

    If you want the formula to have no effect, but then ramp up, leave the project time at 1 and keyframe the Strength from 0 to 100% beginning at the desired frame.

    Alternatively, if you want to jump from no effect to full effect, keyframe the “Enabled” setting in the Basic tab between successive keyframes.

    Hope this helps.

  • Peter Zeet

    May 23, 2019 at 7:20 pm

    Thanks Jim for the ideas!
    Now I that have been messing around with adding decay to make it like a water drop decaying to 0, plus your fantastic tops to make the formula on/off, the issue now, is that that formula seems to be generated at frame zero, so none of the options mentioned below seems to work (even animating the enabled status didn’t make the trick), so I’m back again to trying to mess with the t value to make it not start until a desired frame.

    This is the formula I’m playing with
    and my adaptation is (40*Sin(((u*6)-t*1.1)*pi*2.0)/exp(t*1-u))

    which is a variation of some of this Dan Ebbert’s decaying sine wave gold snippet:
    amp*Math.sin(t*freq*Math.PI*2)/Math.exp(t*decay)

    A side solution may be linking the t value in the exp(t*1-u) so its always 0 until I say to be 1 (or some non zero value)
    But it should be a better and simpler solution, I guess?

  • Jim Scott

    May 23, 2019 at 8:11 pm

    Hi Peter,
    Any chance you could post your project file? It would make it easier to troubleshoot if we could see it.

  • Peter Zeet

    May 23, 2019 at 9:01 pm

    hey!
    yes, here it is!
    Its very simple, just a plane with the formula and the decay snippet on it

    13367_decaywave.c4d.zip

    many thanks!

  • Jim Scott

    May 23, 2019 at 9:16 pm

    Thanks Pete,

    My brain scrambled your original post, so I was making suggestions based on a formula effector and not a deformer, which rendered all of my suggestions rather meaningless. Sorry for the confusion. Let me look at this and get back to you.

  • Peter Zeet

    May 23, 2019 at 9:18 pm

    oh! my bad! I should have been more specific!

  • Jim Scott

    May 23, 2019 at 10:10 pm

    Nope, that was completely my mistake. You distinctly wrote “deformer,” and for some reason I set up an example with an effector on clones to experiment with because I had been working with some effectors earlier in the day. It must be old age.

  • Jim Scott

    May 23, 2019 at 10:55 pm

    I think that you are right that using xpresso is the way to go. Unfortunately that is an area where my ignorance really shines so hopefully someone else can chime in. I’ll keep plugging away and let you know if I come up with something.

  • Peter Zeet

    May 24, 2019 at 2:21 pm

    thanks for your help! it’s been quite helpful indeed, as a start to know where to look!

  • Emir Bojorquez

    May 24, 2019 at 2:57 pm

    I’m not sure if this is what you are looking for:

    -Reduce the “t” to small value like .9
    -Put the Falloff weight in 100%.
    – Add keyframes the fall off Position.

    Here is an example.

    13368_examplewave.zip

    Hope that helps.

    Good Luck

    Imagination is the best tool…

Page 1 of 2

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