Partager via


Animate the points on a path or clipping path

In Blend for Visual Studio 2012, you can animate the points (or vertices) on a path object. For example, you could animate the points of a clipping path to gradually reveal the object underneath the clipping path. You could convert text in a TextBlock to path objects, and then animate the letters to change them into other shapes, perhaps even reversing the storyboard so that you start with shapes that change into letters.

Path objects are created by the Pen tool JJ170201.894f8612-e0ed-4e00-84cf-a9bc8f38fc54(fr-fr,VS.110).png, by the Pencil tool JJ170201.509dc167-734f-46c9-b012-987ee63450cd(fr-fr,VS.110).png, and by converting other objects (such as shapes or text) to paths.

To animate the points on a path or clipping path

  1. If you do not have a path object on the artboard, you can create one by following the instructions in one of the following topics:

  2. Open the storyboard to which you want to add the path animation timeline, or create a new storyboard.

    For more information, see Open or close a storyboard or Create, modify, or delete a storyboard.

  3. In the Objects and Timeline panel, select the path object that you want to animate.

  4. In the Tools panel, select the Direct Selection tool JJ170201.6dd6571f-c116-451d-8dd2-1f88b8406362(fr-fr,VS.110).png. The points of your path object are identified on the artboard by small squares.

    JJ170201.9ac35d28-e749-4032-9946-a19e62905b71(fr-fr,VS.110).png

  5. Move the timeline playhead JJ170201.5626c9eb-40bb-450a-9ca1-3678e5abe429(fr-fr,VS.110).png to the location on the timeline where you want to record a change in one of the points.

  6. On the artboard, either drag or hold down ALT while dragging individual points and line segments to new locations. You can also select the Pen tool JJ170201.894f8612-e0ed-4e00-84cf-a9bc8f38fc54(fr-fr,VS.110).png to add or remove points on the path.

    [!REMARQUE]

    If you add or remove points when in timeline-recording mode, the results take effect from the start of the timeline. For example, removing a point changes the starting shape of the path as if you had removed the point when not in timeline-recording mode.

    For a list of the different ways that you can modify a path, see Direct Selection tool modifier keys and Pen tool modifier keys.

    JJ170201.7956fc51-fea6-4f6d-96e6-1ee13d7f6ea6(fr-fr,VS.110).png

  7. Continue moving the timeline playhead JJ170201.5626c9eb-40bb-450a-9ca1-3678e5abe429(fr-fr,VS.110).png and modifying points until you complete your animation.

Voir aussi

Tâches

Test a storyboard

Apply, modify, or remove a clipping path

Concepts

Keyboard shortcuts and modifier keys