Contrainte Follow Path

La Contrainte Follow Path place son propriétaire sur un objet curve cible, et le fait bouger le long de la courbe (ou chemin). Elle peut aussi affecter la rotation de son propriétaire pour suivre les virages de la courbe, quand l’option Follow Curve est activée.

Elle pourrait être utilisée pour le traveling complexe de caméra, un train sur ses rails et la plupart des autres véhicules peuvent aussi utiliser des rails « invisibles », les maillons d’une chaîne de bicyclette, etc.

Le propriétaire est toujours évalué dans l’espace global (monde) :

  • Its location (as shown in the Transform panel) is used as an offset from its normal position on the path. E.g. if you have an owner with the (1.0, 1.0, 0.0) location, it will be one unit away from its normal position on the curve, along the X and Y axis. Hence, if you want your owner on its target path, clear its location Alt-G!

  • This location offset is also proportionally affected by the scale of the target curve. Taking the same (1.0, 1.0, 0.0) offset as above, if the curve has a scale of (2.0, 1.0, 1.0), the owner will be offset two units along the X axis (and one along the Y one)…

  • Quand l’option Curve Follow est activée, sa rotation est aussi décalée de celle donnée par la courbe (càd. que si vous voulez que l’axe Y de votre objet soit aligné sur la direction de la courbe, il doit être au repos, dans un état sans contrainte, aligné sur l’axe Y). ici de nouveau, l’effacement de la rotation du propriétaire Alt-R pourrait être utile…

Le mouvement du propriétaire le long de la courbe/chemin cible peut être contrôlé de deux manières différentes :

  • The most simple is to define the number of frames of the movement, in the Path Animation panel of the Curve tab, via the Frames number field, and its start frame via the constraint’s Offset option (by default, start frame: 1 [= offset of 0], duration: 100).

  • The second way, much more precise and powerful, is to define an Evaluation Time interpolation curve for the Target path (in the Graph Editor). See the Graph Editor chapter to learn more about F-curves.

  • If you do not want your owner to move along the path, you can give to the target curve a flat Speed F-curve (its value will control the position of the owner along the path).

Follow Path is another constraint that works well with the Locked Track one. One example is a flying camera on a path. To control the camera’s roll angle, you can use a Locked Track and a target object to specify the up direction, as the camera flies along the path.

Note

Follow Path & Clamp To

Do not confuse these two constraints. Both of them constraint the location of their owner along a curve, but Follow Path is an « animation-only » constraint, inasmuch as the position of the owner along the curve is determined by the time (i.e. current frame), whereas the Clamp To constraint determines the position of its owner along the curve using one of its location properties” values.

Note

Notez que vous devez aussi keyframe Evaluation Time for the Path. Sélectionnez le chemin, allez dans le panneau Path Animation dans les propriétés de courbe, fixez la overall frame à la première trame du chemin (ex. trame 1), fixez la valeur de Evaluation time à la première trame du chemin (ex. 1), cliquez-droit sur Evaluation time, sélectionnez create keyframe, fixez overall frame au dernier trame du chemin (ex. trame 100), fixez la valeur de Evaluation time à la dernière trame du chemin (ex. 100), cliquez-droit sur Evaluation time, sélectionnez create keyframe.

Options

Target

Identifiant de données (Data ID) utilisée pour sélectionner la cible de la contrainte, qui doit être un objet curve, et qui n’est pas fonctionnelle (état rouge) quand elle n’en a aucun.

Animate Path

Adds an F-curve with options for the start and end frame. ToDo: from above.

Curve Radius

Objets mis à l’échelle par le rayon de la courbe. Voir Édition de courbe.

Fixed Position

L’objet va rester verrouillé à un point quelque part sur la courbe indépendamment du temps.

Offset

The number of frames to offset from the « animation » defined by the path (by default, from frame 1).

Follow Curve

Si cette option n’est pas activée, la rotation du propriétaire n’est pas modifiée par la courbe ; autrement, elle est affectée selon les options suivantes :

Forward

The axis of the object that has to be aligned with the forward direction of the path (i.e. tangent to the curve at the owner’s position).

Up

The axis of the object that has to be aligned (as much as possible) with the world Z axis. In fact, with this option activated, the behavior of the owner shares some properties with the one caused by a Locked Track constraint, with the path as « axle », and the world Z axis as « magnet ».