Flash CS3 object transform tutorial: Difference between revisions

The educational technology and digital learning wiki
Jump to navigation Jump to search
Line 2: Line 2:
<pageby nominor="false" comments="false"/>
<pageby nominor="false" comments="false"/>
This entry is part of the [[Flash tutorials]].
This entry is part of the [[Flash tutorials]].
This is part of the [[Flash tutorials]]


== Overview ==
== Overview ==
Flash has quite powerful object transformation tools. You should learn about these in order to create more sophisticated drawings and/or [[Flash shape tweening tutorial|morphing]] (shape tweening) animations animations.


<div class="tut_goals">
<div class="tut_goals">
Line 22: Line 23:
: None, just play with your own objects :)
: None, just play with your own objects :)
</div>
</div>
Flash has quite powerful object transformation tools. You should learn about these in order to create more sophisticated drawings and/or [[Flash shape tweening tutorial|morphing]] (shape tweening) animations animations.


; Executive summary - Various drawing strategies for complex objects
; Executive summary - Various drawing strategies for complex objects

Revision as of 17:42, 26 October 2008

<pageby nominor="false" comments="false"/> This entry is part of the Flash tutorials.

This is part of the Flash tutorials

Overview

Learning goals
Learn about basic Flash 9 (CS3) object transformations with various tools.
Prerequisites
Flash CS3 desktop tutorial
Flash drawing tutorial
Moving on
Select one from the Flash tutorials.
Probably you'd like to animate shapes (Flash shape tweening tutorial)
Quality
This text should technical people get going and may not be good enough for self-learning beginners. It can be used as handout in a "hands-on" class. That is what Daniel K. Schneider made it for...
Level
It aims at beginners. More advanced features and tricks are not explained here.
Materials
None, just play with your own objects :)

Flash has quite powerful object transformation tools. You should learn about these in order to create more sophisticated drawings and/or morphing (shape tweening) animations animations.

Executive summary - Various drawing strategies for complex objects
  1. Draw/paint in merge mode (overpaint shapes), then transform to graphic object.
  2. Draw in object mode, then group or convert to symbol.
  3. Carve shapes with the eraser.
  4. Transform a simple shape with select tool, envelope transforms and sub-selection tool.
  5. Assemble objects (see Flash arranging objects tutorial), then any of the above.
Executive summary - transform tools in the tools panel
Tools for transformations in the tools panel
  • The Select tool allows to quickly distort an unselected object by moving the cursor close to it until it changes to curve or edge shape. The you simply drag the mouse. (BTW this is a very dangerous tool, by mistake you can dammage your drawings if you don't lock the other layers ...)
  • Use the Free Transform tool and its variants to make complex transforms of the envelope of a shape, e.g. learn how to use the envelope transform.
  • The Subselection tool allows you drag squares (distortion points) and turn/drag circles (curve control handlers). I view it more as a "repair" and "fine tuning" tool.
  • With the Eraser you can "carve" out objects (like a woodcutter or a chainsaw artist).
Executive summary - transform tools in other places
  • The menu Modify->Transform can get you directly into the modes of one of these tools.
  • The Transform panel (Window->Transform) lets do you the default free transforms by entering property values for size, rotate and skew.
  • Hit CTRL-ALT-S to resize or rotate a selected object by entering a number.
  • The menu Modify->Shape has a few tools to automatically adjust shape.
  • Finally, there are also transformation icons on the main toolbar (which is not shown by default, use Window->Toolbars->Main).

... a rather confusing amount of tools. Probably I forgot something ;)

The select tool

The select tool (arrow on top) strangely enough has two functions. These are entirely different and may lead to confusion.

  • Select objects
  • Distort objects

To distort objects the easy way, read on ...

Default behavior of the select tool

If you click on an object or if you select it with a selection box you see this:

  • A hooked cross icon
  • A white circle in the middle of the selected object (or selected objects)

You then can move it around, but that's not what we are interested in right now. The only important thing you may remember is the following:

  • when you see a cross, it means that you successfully selected the object.
  • The white dot represents the center, e.g the point where an object will snap to a motion guide line.
A simple oval

... this is not what you want.

Let's now make a banana

Ok, now let's distort an object. Let's start with an oval drawn in object mode. See the picture above or below.

Make a rounded banana with the selection tool
  • First, deselect everything (including the banana), e.g. click on the gray workspace area.
  • Select the select tool.
  • Then move it close to the stroke (outline).
  • When the cursor turns into a curve, then hold down the mouse and drag
Select tool - curve icon

Here is a result, a nice banana:

A simple oval turned into a banana
Make sharper ends
  • Copy/paste the banana, if you like the old one. (select, ctrl-c, ctrl-v)
  • Again, deselect everything
  • Then hold down the ALT key and slowly search around the ends of the banana.
  • If you see the angle icon, then drag. The angle icon won't show up everywhere, it's basically meant to drag corners.
Select tool - curve icon

Result: two bananas of different shape:

A sharp and a round banana

You then can fine tune things with the subselection tool (see below).

Turning lines

  • To turn a line use the select tool and move to one end. When the edge icon shows up, you can turn/stretch a line.
Edge/angle icon - turning/stretching a line

Hint: To rotate around a random rotation point, see the free transform tool below

The Free transform tool

Make sure that you understand drawing basics, i.e. have an idea what kinds of tools you got in the tools panel. If you don't, please go read the Flash drawing tutorial.

Features of the free transform tool

The free transform tool allows you to do several things

  • By default: Scale, rotate, skew and distort
  • Envelope transforms
  • Distorts (but see the selection tool)

So again, you face a multipurpose tool. You can define its different variants by selecting different mode in the options part of the tools panel (lower end). Read on ...

The Transform panel

Instead of dragging around handles as explained below, you also may type in transformation values in the Transform panel. That's useful for technical drawings.

Get it with the Window->Transform menu. I usually have this docked next to the color panels (top right) as in the following screen capture. (If you don't know how to dock, please read the Flash CS3 desktop tutorial).

A screenshot of tools related to the Free Transform tool
Lots of transform tools ...

Simple transformations

By default the free transform tool let's you scale, rotate, skew.

To select an object for transforms
  • Select the Free Transform tool
  • Click on an object (or the other way round)
The transformation controls
  • You object will be in a rectangular box with a distortion control in each corner and one in the middle of each line.
To scale in both directions (x and y)
  • Grab a corner and drag as in the screen dump below:
X and Y size transform
  • If you want to scale a graphic and keep the proportions, hold down the SHIFT key.
To scale into one direction (x or y)
  • Drag one of the points in the center of a line (of the surrounding box).
To rotate an object
  • Move your mouse outside near a corner. You will see a rotation icon.
  • You then can turn around the object.
Rotate with the transform tool

You also will see the changes in the transformation panel. Btw. you can move the rotation point (see next section).

To skew an object
  • Move your mouse over a stroke (line), but not over a distortion box
  • You will see some vertical or horizontal double arrow (skew icon)
  • Then drag ...
Skew with the transform tool

Rotations

  • By default an object will rotate around the white circle in the middle. But you can move this rotation point. Grab it with the mouse and move it where ever you want. Flash also gives some help. E.g. if the drawing is a line it will display the center of the line and you then can move the point to one of its ends for example.

In the following screendump we have a picture of a stick man and we'd like turn his right arm. To do so:

  • Click on the Free Transform tool (standard options as above)
  • Then move the little dot in the right arm towards the "inner end" of the stick man. The cursor should have a little circle next to it in this mode. See the screen shot below.
Change rotation point with the Free Transform Tool

After that you can rotate the arm around its new rotation point (as described in the previous section).

  • Again, use the Free Transform tool (standard options)
Rotate around the new rotation point with the Free Transform Tool

The standard options of the transform tool allows to rotate, resize and distort an object. You have to work with options for more complex transforms.

Envelope transforms

Envelope transforms allow to change the shape of an object in a more controlled way. It works on both shapes and objects. Let's now make a designer chair.

Step 1 - Draw a rectangle
  • Do it with the rectangle tool.
Step 2 - Go into envelope transform
  • Select the object first, i.e. the rectangle.
  • Click on the Free Transform Tool.
  • Select the Envelope option (see the screen capture below). So this tool is an option of the "free transform tool"
Envelope Transform with the Free transform tool
Step 3 - Transform
  • Drag any little square. These are called distortion points.
  • Once you start transforming you also get curve control handles (the little circles). You can turn these in order to smoothen out curves. See the screendump just below. Or you can drag them to add new distortion (or combine both movements of course)
Envelope transforming to make a designer chair

The transform menu

The Transform Tools

The Menu Modify->Transform gives you the choice of several kinds of transformations

  • Select the object(s) to be transformed first
  • Then select from several options
The transform menu

Basically it let's you all you can do with

  • The Free Transform tool and its options
  • The Subselection tool
The Shape Tools

You can smoothen out shapes, make them blurry or straigthen, etc.

  • Menu (Modify->Shape) has a few tools

You can for example:

  • Smooth, i.e. take away some edges
  • Reduce the amount of edges (optimize)
  • Add soft edges, i.e. make the borders "blurry"
  • Straigthen

Here is an example of soft edges and straighten:

Modify->Shape Tools

You can not do everything with composite objects. E.g. to add soft edges, ungroup / break groups apart first, then union...

The Subselection tool

This tool allows envelope transformations or rather fixing envelope transforms made with the selection tool or with the transform tool in envelope or distortion mode. Handles work like in the Envelope transform tool.

Distortion points

The little squares are distortion points

  • You can drag these anywhere to change the shape of the object
  • You also can drag them along the stroke before you drag them out
  • You can delete these. Move the cursor over one of these and when the cursor changes shape, click first, then hit delete. This will simplify a stroke.
Curve control handlers

The little dots are curve control handles with which you can adjust the curves in two ways:

  • You can turn them to change the curve: smooth or sharpen.
  • But you also can drag them to some place to distort the shape ....
  • To get curve control handles click on a distortion point or move it.
Dragging out a shape with a curve control

If you can't see well what your are doing (I can't in 100% mode), zoom in like 200 or 400% ...

The Eraser tool

The eraser tool allows you to carve objects. In the options / controls in the tool panel, you can change the way the eraser works.

Erasing shapes (drawn in merge mode) and graphics objects (drawn in object mode) doesn't lead exactly to the same results. When you carve an object it remains an object. When you carve a (single) shape, it will divide into other shapes.

We shall not explain much here, better try it out ...

  • Draw three nice fat ovals with a fat stroke. Two of them overlapping
  • Then, select the eraser mode. This works like the paint tool
  • Use Ctrl-Z to undo what you have done .... so you can try other options.
Eraser modes

Here are the modes:

  • Erase normal: Will erase as you paint
  • Erase fill: Will only erase fills (paint)
  • Erase lines: Will only erase strokes (lines, contours of objects)
  • Erase selected fills: Will only erase fills that you have selected (hold down the SHIFT key to select several)
  • Erase inside: Will erase fills inside an object if you start erasing inside the object.

In the following screen dump we used the 'erase fill option to take out fills from the oval and the rectangle.

Eraser options
The faucet
  • Will kill any shape on which you click. It makes a distinction though between the stroke and the fill of an object.
Eraser shape
  • You can select different sizes of circles and rectangles
  • Use rectangles to carve off rectangles and circles to carve of round stuff.

The Lasso tool

Includes a magic wand (see the controls at the bottom of the tools panel)

(to be continued some day)

Moving on

If you already didn't do it, try the Flash shape tweening tutorial, i.e. learn how to do morphing animations.