MAXON CINEMA 4D: Cinema 4D Forum Adobe After Effects Forum

Extrude along MOTION PATH with rotations

COW Forums : Maxon Cinema 4D

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
Eric Chard
Extrude along MOTION PATH with rotations
on Oct 29, 2019 at 5:49:07 am

(R17)  There are many ways to Extrude along a spline, but I'm wondering if there's a way to Extrude along an actual MOTION PATH.

The difference would be, most extrusion methods seem to ignore the rotation of points along the spline.  I'd like to use a motion path to bank and tilt the extrusion as it moves along.  Hopefully this could be interactive, so a user can fine-tune extrusion collions or whatever.

I see the Timeline Function "Position Track To Spline", but the wording of that makes me suspect the rotation channels are ignored.

++++++++++++++++
"Putting the HARM in 'harmonica' since 2005."
++++++++++++++++


Return to posts index

Sam Treadway
Re: Extrude along MOTION PATH with rotations
on Oct 30, 2019 at 5:18:13 am

I'm not sure I follow. Have you tried MoExtrude?
Actually I think I know what you mean and did a fun little experiment.
This whole setup could be combined into an eXpresso Rig using Instance objects as internal placeholders.
A Python script is also possible...but another day maybe.

Here's a simple (convoluted) approach assuming you want to extrude a polygon along a path:

Destructive but clean in the end method:
While on frame zero, center a null on the polygon and animate the null with all the banking you want.
Go back to Frame zero.
Select the polygon and in the viewport: right-click and choose "split".
Drop that polygon that you just split off as a child of the animated null.
Create a Mograph Tracer and drop that split polygon object into the "Trace Link".
Set the trace mode to "Trace Paths" and make sure Trace Vertices is turned on.
Other settings: Limit = none, Type=Cubic, Intermediate points=natural.
Play through to the final frame and stop.
Select the Tracer and perform current state to object.
Add in a MoGraph Fracture object and make the tracer splines a child.
Set the Fracture mode to "explode segments" and then do a current state to object.
Now Create a Loft Nurbs object and move the splines in the Fracture(null) as children of the Loft.


A non destructive method if you wish to keep the animation of the extrusion:
Center a null on the polygon and animate the null with all the banking you want.
Go back to Frame zero.
Select the polygon and in the viewport convert the selection from polygons to edges.
Perform an Edge to Spline operation.
Drop that new spline a child of the animated null.
Create a Mograph Tracer and drop the edge spline object into the "Trace Link".
Set the trace mode to "Trace Paths" and make sure Trace Vertices is turned on.
Other settings: Limit = none, Type=Cubic, Intermediate points=natural.
Now create a Loft and and MoSpline.
Make the MoSpline a child of the Loft.
Set the loft to loop=on/true.
Set the MoSpline to "Spline" mode.
On the Spline tab, drop the Tracer object into the spline source field.
Count how many edges the extruding polygon has.
Set the end value of the MoSpline to 100 divided by the number of edges (4 edges to 25%).
Duplicate the Mospline so you have one for each edge (4 MoSplines for 4 edges)
Now set the offset value of each MoSpline object to (100/Number of edges*(Current edge Count-1)) (first edge = 0%, 2nd = 25%, etc.)
Now back to the edge spline that is a child of the animated null: put it as a child of an extrude object (still under the animated null) and set movement to 0,0,0.
This will be the cap of the extrusion.
Now Create a Connect object and make the animated null and the Loft children of the Connect.
Set the Connect's Phone mode to "Average".
Press play and adjust the segments/subdivisions of the Loft as needed. Adjust the Loft's Phong tag angle limit to a lower value.

Was it helpful?


Return to posts index

Sam Treadway
Re: Extrude along MOTION PATH with rotations
on Oct 30, 2019 at 5:23:42 am

Let's see if this scene file created in R21 will open in R17:


13855_animatedextrusionwithbankingtest.c4d.zip

Was it helpful?


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2019 CreativeCOW.net All Rights Reserved
[TOP]