Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Maxon Cinema 4D delay sine wave start

  • delay sine wave start

    Posted by Eric Sanderson on April 30, 2009 at 6:32 pm

    I have an animation where objects pop/grow out of the floor fast and with a springy bouncy motion when they do. I did this using a sine wave/exp curve, but my prob is since they are based on “Time” they pop out and animate starting at frame “0” and id like to know how to set it up to be able to delay, or flat out control that. Im new to xpresso but know expressions in AE well so im just thinking of a way to write a conditional statement saying if(time<"whatever frame")0 else animate sine wave..and animate as if time = time-"whatever frame". does that make sense? Anyways if anyone can help it would be greatly appreciated...i actually never got an answer about my last xpresso question but was able to figure it out, but makes me wonder if this isnt the place to be asking xpresso questions. If not does anyone know a good place to?

    Alejandro Torres replied 17 years ago 2 Members · 3 Replies
  • 3 Replies
  • Alejandro Torres

    May 1, 2009 at 1:59 pm

    What i would do is setup the next Xpresso:

    Time node connected to the second “Input” in a Condition Node.
    The “Output” of the Condition Node would go to a “Trigonometric” Node (set to sine). The output of the trigonometric to whatever it is you need to animate.

    The “condition” node works by outputing the value of the input it is “pointing at”. The “Switch” node points to the input that will be outputed. So if you have switch set to “0” the output will be equal to the first input value (in our case 0 thus not animating at all). If “switch” is set to “1” the output of the node will be equal to the second input (thus “feeding” the trigonometric node with the value of the time node).

    So the only thing you need to do is animate the “switch” condition from 0 to 1 whenever you want it to start and from 1 to 0 whenever you want it to stop.

    Does this solve your problem?

    Regards,

    Alejandro

    Free C4D tutorials and objects: http://www.archc4d.com/freebies.html

  • Eric Sanderson

    May 1, 2009 at 2:58 pm

    That sounds like it would help in the future, only problem i can see with it now without testing it out is since for ex. my sine wave now is divided by an exp curve…if i set the time to turn on a few seconds down the timeline my sine wave could be almost completely decayed (depending on how fast i set it to decay) by the time it turns on, thats why i was wondering if there was a way to make it look at the time it turns on and subtract that amount of frames so its as if it started at 0.

    My other concern is since this is my first time using xPresso, and i didnt really follow tutorials just sort of experimented, my nodes are a mess and im not sure how id implement your technique in with this pipeline without changing the results because i have it animate exactly how i want, ill add a pic of it.

    …basically i have the word “Battle” (i couldnt use mograph type cause its a custom font so each letter is its own extruded object) So the “movement Y” on the end of the pipeline is the extrusion height, and i have it start with the “B” and sequentially animate up in sort of a “wave” look…a lot of those math nodes are mostly multiplying and/or dividing the freq and amp of the sine waves and exp curve, so they may look redundant but as i said this was kind of an experiment.

    Sorry for the Novel but after all that if you know how i could implement your idea with my flow that would be great thanks!.

  • Alejandro Torres

    May 1, 2009 at 4:00 pm

    I guess you could implement my idea using the “condition” node output to every input that has “time” as an input. Then you just animate the switch property and it’s done! This setup would make time=0 while switch=0 and time=time while switch =1

    Free C4D tutorials and objects: http://www.archc4d.com/freebies.html

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