Difference between revisions of "Doc:Creating Shapes"
m (Add translation bar.) |
m (Text replace - '[[' to '{{l|') |
||
Line 1: | Line 1: | ||
− | {{TranslationBar|CONTENT= | + | {{TranslationBar|CONTENT={{l|Creating Shapes|English]] · {{l|Creating Shapes.es|Español]] · {{l|Creating Shapes.ru|Русский]]}} |
<!--Categories--> | <!--Categories--> | ||
− | + | {{l|Category:Tutorials]] | |
(Draft) ''Note to the reader: This is still incomplete; please be patient.'' | (Draft) ''Note to the reader: This is still incomplete; please be patient.'' | ||
Line 8: | Line 8: | ||
=== Introduction === | === Introduction === | ||
− | Basic primitives such as circles or rectangles are all great, but they are pretty much geometrically inflexible. What about shapes? To do this, we use the | + | Basic primitives such as circles or rectangles are all great, but they are pretty much geometrically inflexible. What about shapes? To do this, we use the {{l|Bline Tool]]. |
=== Headline === | === Headline === | ||
Line 14: | Line 14: | ||
In Synfig, the construct for describing shapes is called a Bline. This is roughly analogous to a "path" in other programs, except that it is strictly a hermite spline. | In Synfig, the construct for describing shapes is called a Bline. This is roughly analogous to a "path" in other programs, except that it is strictly a hermite spline. | ||
− | When you click on the | + | When you click on the {{l|Bline Tool]], you will see that the ducks from your currently selected layer (if there was one) will disappear, but the layer(s) will still remain selected in the {{l|Layers Panel]]. This is normal. Anything you create in the {{l|Bline Tool]] will be inserted above the currently selected layer. Keep in mind that if you want to insert a shape somewhere, you should select where you want to insert it before you go into the {{l|Bline Tool]]—changing the selection afterward will automatically swap you back to the normal tool. |
− | If you take a look at the | + | If you take a look at the {{l|Bline Tool#Options|tool options]] dialog, you'll notice that the first things you see are three checkboxes. Make sure that only "Fill" AND "Outline" are checked. |
{| border="0" cellspacing="5" align="center" width="100%" | {| border="0" cellspacing="5" align="center" width="100%" | ||
| | | | | | ||
− | | | + | |{{l|Image:Toolbox Reset Colors Button.jpg]] |
|| || | || || | ||
− | First, go ahead and click on the "R" button in the lower left corner of the FG/BG color widget in the | + | First, go ahead and click on the "R" button in the lower left corner of the FG/BG color widget in the {{l|Toolbox|toolbox]]. This will reset us back to black and white. |
|} | |} | ||
− | Also, go ahead and set the | + | Also, go ahead and set the {{l|New Layer Defaults#Default Line Width|default line width]] (right next to the FG/BG widget) to something nice and thick -- 10pt should do the trick. |
Clicking with your mouse in the canvas will place vertices. While you are placing a vertex, you can drag out its tangent by dragging the mouse. Do this over and over, and you construct a Bline. | Clicking with your mouse in the canvas will place vertices. While you are placing a vertex, you can drag out its tangent by dragging the mouse. Do this over and over, and you construct a Bline. | ||
Line 33: | Line 33: | ||
So I assume you got your first Bline laid out like you want it. That's great. But we are still in construction mode -- the layers haven't been created yet. There are two ways to create the layers: | So I assume you got your first Bline laid out like you want it. That's great. But we are still in construction mode -- the layers haven't been created yet. There are two ways to create the layers: | ||
# just switch to another tool, or | # just switch to another tool, or | ||
− | # press the "create" button at the bottom of the | + | # press the "create" button at the bottom of the {{l|Bline Tool#Options|tool options tab]] (it's the icon that looks like a gear). |
− | For now, just go ahead and click on the | + | For now, just go ahead and click on the {{l|Normal Tool|normal tool]] because we are done with the {{l|Bline Tool]]. |
// Insert Figure about here | // Insert Figure about here | ||
− | Ok, we now have a nice pretty white region with a thick black outline. Notice that there are two layers that we have created--the | + | Ok, we now have a nice pretty white region with a thick black outline. Notice that there are two layers that we have created--the {{l|Outline Layer|Outline]] and the {{l|Region Layer|Region]]. Despite the fact that they are two separate layers, their vertices parameter has already been {{l|Linking|linked]]--so you can select either one and move its ducks around and the other one will also change. |
If you want to manipulate the vertices after you have created the layers, it is very easy to do so. Just click on one of the layers and have at it. If you want to remove a vertex, right click on it and hit "Remove Item (smart)". Want to insert a point somewhere? Right click on the segment where you want to insert something and his "Insert item (smart)". | If you want to manipulate the vertices after you have created the layers, it is very easy to do so. Just click on one of the layers and have at it. If you want to remove a vertex, right click on it and hit "Remove Item (smart)". Want to insert a point somewhere? Right click on the segment where you want to insert something and his "Insert item (smart)". | ||
Line 45: | Line 45: | ||
NOTE: The only major difference between this normal editing mode and the construction mode is in how you split the tangents--in construction mode you right click on the tangent itself. In normal duck editing mode, you must right click on the vertex that the tangents are attached to. This could be considered a usability bug, and it will be resolved at some point. | NOTE: The only major difference between this normal editing mode and the construction mode is in how you split the tangents--in construction mode you right click on the tangent itself. In normal duck editing mode, you must right click on the vertex that the tangents are attached to. This could be considered a usability bug, and it will be resolved at some point. | ||
− | This may appear to be leading to a mess of layers. And yes, if you aren't using the software properly, that is exactly what you will get. But there is a way to make this more sane: Just study the | + | This may appear to be leading to a mess of layers. And yes, if you aren't using the software properly, that is exactly what you will get. But there is a way to make this more sane: Just study the {{l|Adding_Layers|previous tutorial]] |
− | One quick thing to mention before I finish up. You can change the width of an outline at each vertex. You do this by selecting the outline layer (NOTE: you must select the | + | One quick thing to mention before I finish up. You can change the width of an outline at each vertex. You do this by selecting the outline layer (NOTE: you must select the {{l|Outline Layer]], the {{l|Region Layer]] has no width data) and tweaking with the width ducks. By default, these are masked. To show them, press Alt-5. Repeat to hide them again. You can also see other things to mask via the {{l|Canvas Menu Caret]] > {{l|View Menu]] > {{l|Mask Ducks Menu]]. |
That should give you enough of a grasp of the software to be able to figure out more stuff on your own. | That should give you enough of a grasp of the software to be able to figure out more stuff on your own. |
Revision as of 19:17, 7 September 2009
{{TranslationBar|CONTENT={{l|Creating Shapes|English]] · {{l|Creating Shapes.es|Español]] · Русский]]
{{l|Category:Tutorials]]
(Draft) Note to the reader: This is still incomplete; please be patient.
Introduction
Basic primitives such as circles or rectangles are all great, but they are pretty much geometrically inflexible. What about shapes? To do this, we use the {{l|Bline Tool]].
Headline
In Synfig, the construct for describing shapes is called a Bline. This is roughly analogous to a "path" in other programs, except that it is strictly a hermite spline.
When you click on the {{l|Bline Tool]], you will see that the ducks from your currently selected layer (if there was one) will disappear, but the layer(s) will still remain selected in the {{l|Layers Panel]]. This is normal. Anything you create in the {{l|Bline Tool]] will be inserted above the currently selected layer. Keep in mind that if you want to insert a shape somewhere, you should select where you want to insert it before you go into the {{l|Bline Tool]]—changing the selection afterward will automatically swap you back to the normal tool.
If you take a look at the {{l|Bline Tool#Options|tool options]] dialog, you'll notice that the first things you see are three checkboxes. Make sure that only "Fill" AND "Outline" are checked.
Image:Toolbox Reset Colors Button.jpg]] |
First, go ahead and click on the "R" button in the lower left corner of the FG/BG color widget in the {{l|Toolbox|toolbox]]. This will reset us back to black and white. |
Also, go ahead and set the {{l|New Layer Defaults#Default Line Width|default line width]] (right next to the FG/BG widget) to something nice and thick -- 10pt should do the trick.
Clicking with your mouse in the canvas will place vertices. While you are placing a vertex, you can drag out its tangent by dragging the mouse. Do this over and over, and you construct a Bline.
Keep in mind, however, that during this construction, there is nothing stopping you from just moving it if you don't like where you placed a vertex or a tangent. Honest! If you want to remove a vertex, right click on it and select "Delete Vertex". Want to split the tangents? Right click on the tangent and hit "Split Tangents". Want to loop the bline? right click on the first vertex and select "Loop BLine".
So I assume you got your first Bline laid out like you want it. That's great. But we are still in construction mode -- the layers haven't been created yet. There are two ways to create the layers:
- just switch to another tool, or
- press the "create" button at the bottom of the {{l|Bline Tool#Options|tool options tab]] (it's the icon that looks like a gear).
For now, just go ahead and click on the {{l|Normal Tool|normal tool]] because we are done with the {{l|Bline Tool]].
// Insert Figure about here
Ok, we now have a nice pretty white region with a thick black outline. Notice that there are two layers that we have created--the {{l|Outline Layer|Outline]] and the {{l|Region Layer|Region]]. Despite the fact that they are two separate layers, their vertices parameter has already been {{l|Linking|linked]]--so you can select either one and move its ducks around and the other one will also change.
If you want to manipulate the vertices after you have created the layers, it is very easy to do so. Just click on one of the layers and have at it. If you want to remove a vertex, right click on it and hit "Remove Item (smart)". Want to insert a point somewhere? Right click on the segment where you want to insert something and his "Insert item (smart)".
NOTE: The only major difference between this normal editing mode and the construction mode is in how you split the tangents--in construction mode you right click on the tangent itself. In normal duck editing mode, you must right click on the vertex that the tangents are attached to. This could be considered a usability bug, and it will be resolved at some point.
This may appear to be leading to a mess of layers. And yes, if you aren't using the software properly, that is exactly what you will get. But there is a way to make this more sane: Just study the {{l|Adding_Layers|previous tutorial]]
One quick thing to mention before I finish up. You can change the width of an outline at each vertex. You do this by selecting the outline layer (NOTE: you must select the {{l|Outline Layer]], the {{l|Region Layer]] has no width data) and tweaking with the width ducks. By default, these are masked. To show them, press Alt-5. Repeat to hide them again. You can also see other things to mask via the {{l|Canvas Menu Caret]] > {{l|View Menu]] > {{l|Mask Ducks Menu]].
That should give you enough of a grasp of the software to be able to figure out more stuff on your own.