PDA

View Full Version : R8 :: HOWTO :: Align to Spline


RickBarrett
10-09-2002, 12:14 AM
The method for creating an align to spline animation is a bit different in R8. The new method allows much more control over the animation effect, including control over the effect in XPresso.

This howto will walk through a basic example to get you up to speed.

[list=1]
Create a cube and some sort of spline.
Add an "Align to Spline Expression" to the cube. ( OM -> File -> New Expression -> Align to Spline Expression )
In the Attributes Manager, drag your spline from the OM to the "Spline Path" field.
Click tangential if you want the cube to rotate tagential to the spline, and choose an axis to align (in R7 this was always Z).
You'll notice that by dragging the position field you can move the object along the spline. This should give you a hint as to how we'll animate it.
With the time slider at 0F, set the position to 0% and right-or-command-click on position in the Attributes Manager to display the context menu. Choose "Animation->Add Keyframe"
Drag the time slider to 90F, set position to 100%, and add a keyframe the same way. You now have a basic align to spline animation.
[/list=1]

You can also create keyframes by choosing to keyframe parameters and using the record button or autokey, or by dragging the tag into the timeline and setting keys on a Parameter->Position track.

Mike Abbott
10-09-2002, 08:18 AM
Bug? feature? - or user error?

Rick,
Throw together a quick align to spline (bezier, adaptive, open) with a pyramid. It will run tangential on the X and Z axis, but not on the Y.

I have a file if it is a bug and doesn't reproduce on your system. I'm running 8.001, W2k.

For future reference:
What is the best maxon e-mail address to send suspected R8 bugs to?


Cheers,


Mike Abbott

astrofish
10-09-2002, 08:42 PM
Yeah, I'm seeing something similar. This is for trying to follow a spline path with 'tangential' enabled, and trying all three axes. The results are:

In all cases X is constrained to the XZ plane.

Axis X: Alignment is in heading only, not pitch. +Y is always vertically directly up.

Axis Y: Aligns correctly, but not in consistent direction - keeps flipping between +y and -Y.

Axis Z: Aligns correctly.

The spline that I used was planar, but was not parallel with any of the principal axes.

Cheers - Steve Baines

ChrisVilla
10-09-2002, 09:12 PM
We're looking into here...when I get an answer, I'll pass it along.

_chris_

CGTalk Moderation
01-13-2006, 06:00 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.