Example: Transforming an Object's Shape
This example illustrates how to use control points to transform one shape (a square) into another (a star).
- Choose File | New and create a Paint operator called Transform with the following settings:
- Click OK.
- Select black as the foreground color.
- Select a medium-sized brush.
- On the Toolbar, click the unfilled Rectangle tool and draw a square in the middle of the viewport.
- Select the square object and click the Control Points option to turn on its control points.
- Position the cursor over the middle of the square's top horizontal edge.
The cursor changes to the following: . This indicates that by clicking, you can add a control point to the object.
- Add three control points across the top horizontal edge.
- Add one control point to the middle of each vertical edge.
- Add one control point to the middle of the bottom side.
The square should look like this:
- Make sure the Animate button is enabled (red).
- Move to the last frame of the animation, select the Rectangle object in the Timeline, then press the . (period) key to extend the object's duration throughout the length of the animation.
- Position the square's control points so that they form the shape of a star.
- Scrub through the animation. You can see the square transform to a star.