::: mograph :::: 5 expressions that will change your life - ::: mograph :::

Jump to content

  • (3 Pages)
  • +
  • 1
  • 2
  • 3
  • You cannot start a new topic
  • You cannot reply to this topic

5 expressions that will change your life

#21 User is offline   lavaworks Icon

  • Newbie
  • Group: Members
  • Posts: 1
  • Joined: 15-August 08

Posted 15 August 2008 - 03:47 PM

Thank you ! very much!

One question: if my object rotation and or position is linked to other object...how should i put this to work together ?

the object rotation is linked like this : thisComp.layer("Red Solid 2").transform.rotation

what changes should i put to your code ? =) thank you

// Inertial Bounce (moves settle into place after bouncing around a little)
n = 0;
if (numKeys > 0){
n = nearestKey(time).index;
if (key(n).time > time){
n--;
}
}
if (n == 0){
t = 0;
}else{
t = time - key(n).time;
}

if (n > 0){
v = velocityAtTime(key(n).time - thisComp.frameDuration/10);
amp = .05;
freq = 4.0;
decay = 2.0;
value + v*amp*Math.sin(freq*t*2*Math.PI)/Math.exp(decay*t);
}else{
value;
}
0

#22 User is offline   milkshake Icon

  • MoGraph Regular
  • Group: Members
  • Posts: 74
  • Joined: 02-August 06
  • Location:New York City

Posted 15 August 2008 - 10:14 PM

Just put the code on Red Solid 2 :)
0

#23 User is offline   milkshake Icon

  • MoGraph Regular
  • Group: Members
  • Posts: 74
  • Joined: 02-August 06
  • Location:New York City

Posted 15 August 2008 - 10:15 PM

Just put the code on Red Solid 2 :)
0

#24 User is offline   the_Monkey Icon

  • simian
  • Group: Members
  • Posts: 1,705
  • Joined: 22-July 06
  • Gender:Male
  • Location:Brooklyn, NY

Posted 15 August 2008 - 11:14 PM

I tried all these expressions and my life still sucks.
Please advise.

-m
0

#25 User is offline   xdozex Icon

  • MoGraph Demi-god
  • Group: Members
  • Posts: 423
  • Joined: 24-July 06

Posted 16 August 2008 - 01:44 AM

see a therapist and eat a muffin...one will make your life better. Probably the muffin. :)
0

#26 User is offline   Jorge Lega Icon

  • Newbie
  • Group: Members
  • Posts: 14
  • Joined: 04-July 07
  • Gender:Male

Post icon  Posted 13 February 2009 - 03:35 PM

View PostBeaver, on Oct 17 2007, 01:53 PM, said:

These expressions save so much time, you might get home earlier tonight just by reading this post. If you've ever animated these sorts of things manually, you'll know what I mean. Most will need to be tweaked to your specific needs, but it's just a matter of playing with the numbers a little, and understanding how they'll change your animation. Here's the goods:

Jumpy Wiggle 1 makes wiggle skip and hold rather than move fluidly.
// Jumpy Wiggle 1 (moves at a random FPS)
v=wiggle(5,50);
if(v < 50)v=0;
if(v > 50)v=100;
v


Jumpy Wiggle 2 is similar to 1, but works at a defined FPS so your "jump" will happen at a regular pace.
// Jumpy Wiggle 2 (moves at a defined FPS)
fps=5; //frequency
amount=50;  //amplitude
wiggle(fps,amount,octaves = 1, amp_mult = 0.5,(Math.round(time*fps))/fps);


Inertial Bounce is like making your moves "rubbery." Layers will overextend, then settle into place on position and rotation keyframes.
// Inertial Bounce (moves settle into place after bouncing around a little)
n = 0;
if (numKeys > 0){
n = nearestKey(time).index;
if (key(n).time > time){
n--;
}
}
if (n == 0){
t = 0;
}else{
t = time - key(n).time;
}

if (n > 0){
v = velocityAtTime(key(n).time - thisComp.frameDuration/10);
amp = .05;
freq = 4.0;
decay = 2.0;
value + v*amp*Math.sin(freq*t*2*Math.PI)/Math.exp(decay*t);
}else{
value;
}


Sometimes you just want something to move constantly without keyframing it. Use throw.
// Throw (move at a constant speed without keyframes)
veloc = -10; //horizontal velocity (pixels per second)
x = position[0] + (time - inPoint) *veloc;
y = position[1];
[x,y]


Same as throw, but for rotation.
// Spin (rotate at a constant speed without keyframes)
veloc = 360; //rotational velocity (degrees per second)
r = rotation + (time - inPoint) *veloc;
[r]


This is an awesome script works like a charm in AE. I was just wondering how do I get it to work on C4D? I tried using the COFFEE tag but hasn't worked yet for me. Thanks again for these scripts (awesome timesavers)
_______________________
JORGE E. LEGA
MOTION DESIGN & DIRECTION
www.jorgelega.com

Daily Blog
0

#27 User is offline   AAAron Icon

  • Newbie
  • Group: Members
  • Posts: 28
  • Joined: 13-February 09

Posted 13 February 2009 - 03:52 PM

I just joined the forums just to thank you for this stuff ;) Especially Inertial Bounce!
0

#28 User is offline   drnz Icon

  • MoGraph Megastar
  • Group: Members
  • Posts: 338
  • Joined: 24-July 06
  • Location:Venice, CA

Posted 14 February 2009 - 02:07 AM

Thanks Beav--that Inertial Bounce will defs come in handy.
0

#29 User is offline   sjlloyd Icon

  • Newbie
  • Group: Members
  • Posts: 34
  • Joined: 04-February 09

Posted 21 February 2009 - 02:23 AM

could hug you lot right now, thank gawd for expressions :)
0

#30 User is offline   imcalledandy Icon

  • MoGraph Demi-god
  • Group: Members
  • Posts: 438
  • Joined: 23-July 06
  • Gender:Male
  • Location:UK

Posted 21 February 2009 - 12:18 PM

great stuff - I like spin and throw

cheers!
imcalledandy
0

#31 User is offline   knettwerk Icon

  • MoGraph Regular
  • Group: Members
  • Posts: 69
  • Joined: 09-August 07
  • Gender:Male
  • Location:Chicago, IL

Posted 30 March 2009 - 05:47 PM

Thank you for this.
inspiration is only limited by you.
0

#32 User is offline   holdengraphics Icon

  • Newbie
  • Group: Members
  • Posts: 12
  • Joined: 29-April 09

Posted 27 May 2009 - 08:32 AM

Great stuff.

Does anyone know of an equivalent to Inertia Bounce in Cinema 4D?

Would be really useful ...

Thanks
0

#33 User is offline   basilisk Icon

  • Mograph Deity
  • Group: Members
  • Posts: 1,016
  • Joined: 23-July 06
  • Location:Oxford UK

Posted 27 May 2009 - 08:48 AM

View Postholdengraphics, on May 27 2009, 09:32 AM, said:

Does anyone know of an equivalent to Inertia Bounce in Cinema 4D?

The Jiggle deformer (Mocca module) does this. It has the added advantage of deforming the object as well - try spinning an object to see instant jelly/jello.
0

#34 User is offline   stoiqa Icon

  • MoGraph Megastar
  • Group: Members
  • Posts: 292
  • Joined: 21-August 07
  • Gender:Male

Posted 20 July 2009 - 03:12 PM

thanks....works great :))

This post has been edited by stoiqa: 20 July 2009 - 03:57 PM

0

#35 User is online   RustyAce Icon

  • Mograph Deity
  • Group: Members
  • Posts: 855
  • Joined: 24-July 06
  • Gender:Male
  • Location:Charlotte, NC

Posted 14 September 2009 - 01:02 PM

Bump, thanks again Beaver
rusty ace
I am always doing that which I cannot do, in order that I may learn how to do it.
Pablo Picasso
0

#36 User is offline   tomcat Icon

  • MoGraph Megastar
  • Group: Members
  • Posts: 374
  • Joined: 10-August 06

Posted 14 September 2009 - 01:49 PM

It is so easy to do this with keyframes.
Why not just learn the program?
0

#37 User is online   RustyAce Icon

  • Mograph Deity
  • Group: Members
  • Posts: 855
  • Joined: 24-July 06
  • Gender:Male
  • Location:Charlotte, NC

Posted 14 September 2009 - 02:17 PM

not key framing is learning the program. There is a reason they built in the ability to scrip motion, plus you can achieve a smoother motion in half the time and be able to make adjustments faster then beating the curves to death.
rusty ace
I am always doing that which I cannot do, in order that I may learn how to do it.
Pablo Picasso
0

#38 User is offline   Audie12 Icon

  • Newbie
  • Group: Members
  • Posts: 1
  • Joined: 15-September 09

Posted 15 September 2009 - 07:44 AM

That's great to hear that..Thanks a lot for the information.Good job.


Regards

Albert

______
Pret immobilier
0

#39 User is offline   mintyfresh Icon

  • MoGraph Superstar
  • Group: Members
  • Posts: 175
  • Joined: 29-May 09

Posted 17 September 2009 - 05:40 AM

is there something like intertial bounce that would work on the morphing between pasted spline path keyframes in a shape/mask object? i'd love to add some bouncyness like the inertial bounce delivers
0

#40 User is offline   kitkats Icon

  • MoGraph Megastar
  • Group: Members
  • Posts: 343
  • Joined: 18-December 06
  • Location:London

Posted 21 September 2009 - 05:19 PM

Just wondering if anyone knows the easiest way to replicate inertial bounce in C4D?
0

  • (3 Pages)
  • +
  • 1
  • 2
  • 3
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users