Jump to content


Photo

How To Blend Between 2 Pathes?


  • Please log in to reply
8 replies to this topic

#1 holgerneuhaeuser

holgerneuhaeuser

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 101 posts

Posted 26 September 2008 - 10:35 AM

Hi

can anybody help me with the following question:

I want to Blend between a keyframe animated path and a tracked paths,

so that 1 use the handanimated path till frame 100 then I want to blend over 50 frames to the tracked path which continues the move.


In other words , something like constraits in 3d programs.

Any ideas?

Thanks
Holger

#2 Gringo

Gringo

    Associate Administrator

  • Adv Members
  • PipPipPipPipPip
  • 1,455 posts

Posted 26 September 2008 - 10:53 AM

Hi!

I think you need an Expression modifier with 1 point control connected to the tracker and another connected to the path.
You can also use a Number control to set the magnitude.

Expression should find the difference between the points, then multiply it by the number (magnitude) and add to the 1-st point's coordinate.
(p2x-p1x)*n1+p1x

Attached Files



#3 jirka

jirka

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 131 posts

Posted 26 September 2008 - 11:38 AM

see attached comp (remove txt extension)

hth
jirka

Attached Files



#4 holgerneuhaeuser

holgerneuhaeuser

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 101 posts

Posted 26 September 2008 - 01:32 PM

Thanks a lot,

Holger

#5 Gringo

Gringo

    Associate Administrator

  • Adv Members
  • PipPipPipPipPip
  • 1,455 posts

Posted 15 July 2009 - 10:05 AM

Here are 2 macros for blending between paths or between points with any animation type:
one for 2 points (paths) and another for multiple points (paths).

Go to the Modifiers Tab of the node and connect the Points In to your animated positions.
The Point Result of the expression can be connected to any object which has to be translated between the paths.

You can also use these expressions for weighted tracking when one path affects the motion more than others.

http://www.compositi...een_4_Paths.mov

Attached Files



#6 Gringo

Gringo

    Associate Administrator

  • Adv Members
  • PipPipPipPipPip
  • 1,455 posts

Posted 16 July 2009 - 03:50 AM

The same expressions, distributed in a more clean and user-friendly way.
They have been wrapped in macros with no host node inside (do you miss the white circle from EllipseMask for previewing purposes?).

Thanks to Chad for the idea.

Attached Files



#7 Tilt

Tilt

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 2,137 posts

Posted 22 April 2011 - 04:55 AM

Reviving this thread... :-)

I wanted to write a modifier Fuse that blends camera tracks but I wanted to tackle a simpler, 2D case first which is also covered by Gringo's macros here.
This Fuse, called "Interpolation 2D" allows you to mix 2 or 4 paths. You can interpolate and extrapolate between 2 points, round-trip between 4 points (A to B to C to D to A..) or calculate a weighted mix of up to 4 points.


Attached File  Screenshot_Interpolation2D.png   9.37KB   48 downloads

Known issue: If you choose modify with -> Interpolation2D, the current value of the input will be set to a hard-coded default value. There's a missing bit in the Fuse API that prevents me from keeping the old value. But if you insert it into an already animated path, everything works fine.

Attached File  Interpolation2D_v1_0.Fuse.txt   7.02KB   20 downloads (remove .txt extension)

#8 robocop

robocop

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 485 posts

Posted 22 April 2011 - 07:08 AM

COOL!

#9 ChadCapeland

ChadCapeland

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 1,975 posts

Posted 22 April 2011 - 08:20 AM

http://www.anatomica...hing-animation/

http://www.anatomica...tive-smoothing/

A different approach.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users