Creating Shapes

From Synfig Studio :: Documentation
Jump to: navigation, search
m
m (update link)
 
(98 intermediate revisions by 18 users not shown)
Line 1: Line 1:
[http://cocopuff66.ifrance.com/text/directory/porta-per/ porta per cani] [http://lekusya.ifrance.com/library/html/the-gemes/ the gemes] [http://gabe95.ifrance.com/html/ricetta-dieta/ ricetta dieta zona] [http://flawedamythyst.ifrance.com/img/styles/anelli-a.htm anelli a tre diamanti] [http://zeakk.ifrance.com/resources/articles/mp-nike.htm mp3 nike] [http://nokros.ifrance.com/data/facio-ut/ facio ut des, facio ut facias] [http://lightmyfire0214.ifrance.com/topic/woman/ woman] [http://mfirishka.ifrance.com/view/new/draft.htm draft] [http://gabe95.ifrance.com/html/syberia-ii/ syberia ii] [http://krychan.ifrance.com/content/view/optio-.htm optio 555 pentax] [http://gajar.ifrance.com/html/apple-mouse.htm apple mouse e tastiere] [http://sm4.ifrance.com/lib/george-duke/ george duke] [http://joshuaw-wise.ifrance.com/img/styles/cmt-dvd/ cmt -dv2d] [http://alishca-st.ifrance.com/text/directory/daniela-la.htm daniela la casa delle play girls] [http://sm4.ifrance.com/lib/wahran/ wahran] [http://horcrionebay.ifrance.com/resources/articles/j-adore.htm j adore gel] [http://gajar.ifrance.com/html/raddoppio-linea.htm raddoppio linea imperia] [http://nokros.ifrance.com/data/dhoom-tata/ dhoom tata young] [http://trumanburb.ifrance.com/view/new/non-ci.htm non ci facciamo conpagnia] [http://joshuaw-wise.ifrance.com/img/styles/dlink-dmc/ d-link dmc 300sc] [http://horcrionebay.ifrance.com/resources/articles/britti.htm britti] [http://gajar.ifrance.com/html/l-uomo.htm l uomo vitruviano] [http://nokros.ifrance.com/data/triple-seven/ triple seven manteniendo la diferencia] [http://atrayah.ifrance.com/topic/katia-del.htm katia del grande fratello 4 nuda] [http://horcrionebay.ifrance.com/resources/articles/dave-morales.htm dave morales] [http://trumanburb.ifrance.com/view/new/pioneer-.htm pioneer - deh-p5700mp] [http://cocopuff66.ifrance.com/text/directory/retoromanzo/ retoromanzo] [http://lekusya.ifrance.com/library/html/guinzaglio-accessori/ guinzaglio accessori per animali] [http://cocopuff66.ifrance.com/text/directory/storia-della/ storia della letteratura italiana del] [http://trumanburb.ifrance.com/view/new/lo-chiamavano.htm lo chiamavano king] [http://gajar.ifrance.com/html/amstrad-vhs.htm amstrad vhs dvd divx] [http://lightmyfire0214.ifrance.com/topic/samsung-/ samsung 40 lcd] [http://alishca-st.ifrance.com/text/directory/grupo-mamey.htm grupo mamey] [http://alishca-st.ifrance.com/text/directory/seca-titanium.htm seca2 titanium] [http://zeakk.ifrance.com/resources/articles/marihunana.htm marihunana] [http://joshuaw-wise.ifrance.com/img/styles/eos-n/ eos 3000n canon] [http://zeakk.ifrance.com/resources/articles/lesbica-bologna.htm lesbica bologna] [http://lekusya.ifrance.com/library/html/superlink/ superlink] [http://zeakk.ifrance.com/resources/articles/dolby-wireless.htm dolby wireless] [http://zeakk.ifrance.com/resources/articles/primus-crack.htm primus crack] [http://gajar.ifrance.com/html/racconto-di.htm racconto di viaggi] [http://squoi-oop.ifrance.com/topic/robot-cucina/ robot cucina philips] [http://sm4.ifrance.com/lib/acction/ acction] [http://flawedamythyst.ifrance.com/img/styles/daewoo-dhc.htm daewoo dhc x100e] [http://lekusya.ifrance.com/library/html/intex/ intex 366] [http://mfirishka.ifrance.com/view/new/camellia-sinensis.htm camellia sinensis] [http://joshuaw-wise.ifrance.com/img/styles/gazzatta-dello/ gazzatta dello soprt] [http://flawedamythyst.ifrance.com/img/styles/the-world.htm the world is not enough] [http://lightmyfire0214.ifrance.com/topic/zen-nano/ zen nano creative] [http://atrayah.ifrance.com/topic/il-migliore.htm il migliore cellulare con fotocamera] [http://lekusya.ifrance.com/library/html/renzo-swing/ renzo swing] [http://flawedamythyst.ifrance.com/img/styles/roma-cagliari.htm roma cagliari biglietti aerei] [http://call-shotgun.ifrance.com/view/new/talaing/ talaing] [http://call-shotgun.ifrance.com/view/new/morwa-idz/ morwa idz za ciosem] [http://alishca-st.ifrance.com/text/directory/codice-civile.htm codice civile svizzero] [http://squoi-oop.ifrance.com/topic/tecnica-scuola/ tecnica scuola] [http://mfirishka.ifrance.com/view/new/sud-coreano.htm sud coreano] [http://joshuaw-wise.ifrance.com/img/styles/moto-gp/ moto gp pc] [http://squoi-oop.ifrance.com/topic/motori-it/ motori it] [http://zeakk.ifrance.com/resources/articles/videocamera-digitale.htm videocamera digitale zoom ottico 20x] [http://trumanburb.ifrance.com/view/new/necke.htm necke] [http://zeakk.ifrance.com/resources/articles/how-do.htm how do you do today] [http://flawedamythyst.ifrance.com/img/styles/vendita-online.htm vendita online cd] [http://dejablu503.ifrance.com/description/lib/antonio-bandres.htm antonio bandres] [http://cocopuff66.ifrance.com/text/directory/blue-elton/ blue elton john] [http://dejablu503.ifrance.com/description/lib/hai-nu.htm hai nu sinh] [http://dejablu503.ifrance.com/description/lib/the-darkness.htm the darkness testi] [http://horcrionebay.ifrance.com/resources/articles/brozzi-srl.htm brozzi srl] [http://zeakk.ifrance.com/resources/articles/berlingo-citroen.htm berlingo citroen] [http://nokros.ifrance.com/data/wen-a/ wen a man loves a woman] [http://lekusya.ifrance.com/library/html/ricordo-autovelox/ ricordo autovelox] [http://cocopuff66.ifrance.com/text/directory/saeco-rondo/ saeco rondo] [http://lekusya.ifrance.com/library/html/valentina-volere/ valentina volere o volare] [http://atrayah.ifrance.com/topic/canterbury.htm canterbury] [http://krychan.ifrance.com/content/view/teoria-atomica.htm teoria atomica de dalton] [http://atrayah.ifrance.com/topic/candy-.htm candy 3 aquamatic] [http://gajar.ifrance.com/html/usato-ford.htm usato ford] [http://squoi-oop.ifrance.com/topic/musica-house/ musica house farfa dj] [http://sm4.ifrance.com/lib/batteria-acer/ batteria acer 370] [http://lightmyfire0214.ifrance.com/topic/bmw-cabrio/ bmw cabrio 2001] [http://nokros.ifrance.com/data/onkyo-kit/ onkyo kit] [http://call-shotgun.ifrance.com/view/new/prestito-personali/ prestito personali casalinghe] [http://call-shotgun.ifrance.com/view/new/casse-diffusori/ casse diffusori 5 1] [http://zeakk.ifrance.com/resources/articles/sanfilippo.htm sanfilippo] [http://nokros.ifrance.com/data/limp-biskit/ limp biskit behind blue eyes] [http://krychan.ifrance.com/content/view/auto-modellismo.htm auto modellismo scoppio] [http://gajar.ifrance.com/html/tiziano-ferro.htm tiziano ferro com] [http://atrayah.ifrance.com/topic/video-porno.htm video porno gratis eva hengher] [http://trumanburb.ifrance.com/view/new/mercedes-sl.htm mercedes sl 320 quotazioni] [http://cocopuff66.ifrance.com/text/directory/grassottella/ grassottella] [http://gajar.ifrance.com/html/redneck-rampage.htm redneck rampage] [http://trumanburb.ifrance.com/view/new/trust.htm trust 3100] [http://cocopuff66.ifrance.com/text/directory/fotos-de/ fotos de soledad fandino] [http://zeakk.ifrance.com/resources/articles/orologi-calorie.htm orologi calorie] [http://call-shotgun.ifrance.com/view/new/molo-/ molo 13 ristorante milano] [http://atrayah.ifrance.com/topic/cucina-ricetta.htm cucina ricetta del giorno 10 dicembre] [http://dejablu503.ifrance.com/description/lib/clipart-drago.htm clipart drago] [http://sm4.ifrance.com/lib/erezioni-pene/ erezioni pene] [http://nokros.ifrance.com/data/rex-f/ rex 60f] [http://sm4.ifrance.com/lib/mars-pathfinder/ mars pathfinder, o mesur] [http://lekusya.ifrance.com/library/html/gioco-fle/ gioco fle contro mutt 2] [http://cocopuff66.ifrance.com/text/directory/renault-safrane/ renault safrane] [http://horcrionebay.ifrance.com/resources/articles/gomme-per.htm gomme per automodello 1 10] [http://zeakk.ifrance.com/resources/articles/testo-della.htm testo della canzone di anastacia] [http://trumanburb.ifrance.com/view/new/creamer-radio.htm creamer radio is dead] [http://smegmacheez.ifrance.com/content/view/toro-mata/ toro mata] [http://horcrionebay.ifrance.com/resources/articles/coca-cola.htm coca cola girl] [http://flawedamythyst.ifrance.com/img/styles/ww-daf.htm ww daf] [http://gajar.ifrance.com/html/esempi-mappe.htm esempi mappe concettuali maturita] [http://squoi-oop.ifrance.com/topic/medici-in/ medici in prima linea 3] [http://call-shotgun.ifrance.com/view/new/bmw-serie/ bmw serie 1 eletta] [http://zeakk.ifrance.com/resources/articles/www-loredana.htm www loredana] [http://lekusya.ifrance.com/library/html/kids-games/ kids games] [http://mfirishka.ifrance.com/view/new/siti-di.htm siti di immagini] [http://lekusya.ifrance.com/library/html/cuffie-ds/ cuffie ds] [http://smegmacheez.ifrance.com/content/view/tocando-fondo/ tocando fondo] [http://lightmyfire0214.ifrance.com/topic/stampanti-canon/ stampanti canon bubblejet] [http://flawedamythyst.ifrance.com/img/styles/great-abaco.htm great abaco] [http://gabe95.ifrance.com/html/fiber-past/ fiber past] [http://joshuaw-wise.ifrance.com/img/styles/karine-lima/ karine lima] [http://zeakk.ifrance.com/resources/articles/memoria-fotocamera.htm memoria fotocamera digitali] [http://sm4.ifrance.com/lib/ddr-pc/ ddr pc333] [http://call-shotgun.ifrance.com/view/new/toner-per/ toner per hp laserjet 1320] [http://gabe95.ifrance.com/html/milano-argentina/ milano argentina] [http://atrayah.ifrance.com/topic/cerco-maturo.htm cerco maturo] [http://sm4.ifrance.com/lib/galbay/ galbay] [http://zeakk.ifrance.com/resources/articles/io-vivo.htm io vivo] [http://nokros.ifrance.com/data/skizzo/ skizzo] [http://alishca-st.ifrance.com/text/directory/giacca-cordura.htm giacca cordura] [http://lightmyfire0214.ifrance.com/topic/roma-park/ roma park hotel] [http://nokros.ifrance.com/data/floggs/ floggs] [http://flawedamythyst.ifrance.com/img/styles/f-ku.htm f ku right back] [http://sm4.ifrance.com/lib/nc/ nc6120 730] [http://lightmyfire0214.ifrance.com/topic/george-raft/ george raft] [http://krychan.ifrance.com/content/view/es-mentiroso.htm es mentiroso midi] [http://dejablu503.ifrance.com/description/lib/linea-.htm linea 80 camper] [http://flawedamythyst.ifrance.com/img/styles/nikki-lemke.htm nikki lemke] [http://gabe95.ifrance.com/html/eski-cuma/ eski cuma] [http://smegmacheez.ifrance.com/content/view/road-block/ road block - il labirinto] [http://sm4.ifrance.com/lib/pci-e/ pci e] [http://flawedamythyst.ifrance.com/img/styles/finanziamento-arles.htm finanziamento arles] [http://horcrionebay.ifrance.com/resources/articles/no-more.htm no more i love you] [http://smegmacheez.ifrance.com/content/view/nutriciones/ nutriciones] [http://flawedamythyst.ifrance.com/img/styles/la-vendetta.htm la vendetta di montecristo] [http://zeakk.ifrance.com/resources/articles/daniel-torres.htm daniel torres] [http://horcrionebay.ifrance.com/resources/articles/www-kejo.htm www kejo it] [http://zeakk.ifrance.com/resources/articles/provini-in.htm provini in tv] [http://atrayah.ifrance.com/topic/dowloads.htm dowloads] [http://lekusya.ifrance.com/library/html/abbigliamento-baby/ abbigliamento baby] [http://cocopuff66.ifrance.com/text/directory/brigitte-nielsen/ brigitte nielsen nuda] [http://dejablu503.ifrance.com/description/lib/face-to.htm face to face the twins] [http://nokros.ifrance.com/data/www-mbro/ www mbro it] [http://trumanburb.ifrance.com/view/new/viseo-sesso.htm viseo sesso] [http://lekusya.ifrance.com/library/html/concorsi-e/ concorsi e concorsi] [http://zeakk.ifrance.com/resources/articles/yushan.htm yushan] [http://nokros.ifrance.com/data/stampante-hp/ stampante hp 7450] [http://joshuaw-wise.ifrance.com/img/styles/clockwork-orange/ clockwork orange] [http://gabe95.ifrance.com/html/fiat-idea/ fiat idea emotion] [http://joshuaw-wise.ifrance.com/img/styles/swingin/ swingin] [http://zeakk.ifrance.com/resources/articles/video-gp.htm video 3gp e mp4] [http://squoi-oop.ifrance.com/topic/karen-little/ karen little] [http://flawedamythyst.ifrance.com/img/styles/centi.htm centi-] [http://gabe95.ifrance.com/html/halloween-ii/ halloween ii - il signore della morte] [http://horcrionebay.ifrance.com/resources/articles/appunti-ingegneria.htm appunti ingegneria] [http://lightmyfire0214.ifrance.com/topic/mamas-add/ mamas add papas] [http://joshuaw-wise.ifrance.com/img/styles/televisione/ televisione 20] [http://gabe95.ifrance.com/html/affiche/ affiche] [http://gajar.ifrance.com/html/motore-di.htm motore di ricerca internazionali] [http://joshuaw-wise.ifrance.com/img/styles/il-coreano/ il coreano decapitato] [http://smegmacheez.ifrance.com/content/view/sim-yoke/ sim yoke] [http://smegmacheez.ifrance.com/content/view/britney-spears/ britney spears foto nuda] [http://gabe95.ifrance.com/html/suoneria-parlate/ suoneria parlate] [http://gabe95.ifrance.com/html/pozzi-di/ pozzi di pozzi alfio] [http://cocopuff66.ifrance.com/text/directory/porno-e/ porno e foto gratis] [http://lekusya.ifrance.com/library/html/televisore/ televisore 5] [http://smegmacheez.ifrance.com/content/view/generazione-x/ generazione x] [http://horcrionebay.ifrance.com/resources/articles/outlet-modena.htm outlet modena abbigliamento] [http://lekusya.ifrance.com/library/html/de-divitiis/ de divitiis] [http://lightmyfire0214.ifrance.com/topic/i-blieve/ i blieve i can fly] [http://call-shotgun.ifrance.com/view/new/m-r/ m r s] [http://squoi-oop.ifrance.com/topic/philips-az/ philips az1004] [http://call-shotgun.ifrance.com/view/new/prezzo-biglietto/ prezzo biglietto concerto eros] [http://trumanburb.ifrance.com/view/new/ps-gun.htm ps2 gun] [http://nokros.ifrance.com/data/sisqo-thong/ sisqo thong song] [http://dejablu503.ifrance.com/description/lib/comprare-automobile.htm comprare automobile] [http://zeakk.ifrance.com/resources/articles/www-hotmail.htm www hotmail] [http://cocopuff66.ifrance.com/text/directory/mp-bersani/ mp3 bersani] [http://mfirishka.ifrance.com/view/new/cesto-portabiancheria.htm cesto portabiancheria] [http://gajar.ifrance.com/html/tre-ragazze.htm tre ragazze in gamba] [http://nokros.ifrance.com/data/digicom-botticelli/ digicom botticelli] [http://zeakk.ifrance.com/resources/articles/giovani-giganti.htm giovani giganti] [http://horcrionebay.ifrance.com/resources/articles/michael-bubble.htm michael bubble sway] [http://lightmyfire0214.ifrance.com/topic/ascite/ ascite] [http://lightmyfire0214.ifrance.com/topic/fiat-panda/ fiat panda multijet] [http://call-shotgun.ifrance.com/view/new/temi-sul/ temi sul terrorismo gratis] [http://lightmyfire0214.ifrance.com/topic/nokia-/ nokia 6680 supporto auto] [http://trumanburb.ifrance.com/view/new/patrol-wagon.htm patrol wagon] [http://smegmacheez.ifrance.com/content/view/eh-nikon/ eh-5 nikon] [http://alishca-st.ifrance.com/text/directory/din-dragost.htm din dragost tei] [http://gabe95.ifrance.com/html/testi-dei/ testi dei blue in italiano] (Draft) ''Note to the reader: This is still incomplete; please be patient.''
+
<!-- Page info -->
 +
{{Title|Creating Shapes}}
 +
{{Navigation|Category:Manual|Doc:Flower Animation}}
 +
{{TOCright}}
 +
{{Category|Manual}}
 +
{{Category|Tutorials}}
 +
{{Category|Tutorials Basic}}
 +
{{Category|Updated}}
 +
{{NewTerminology}}
 +
<!-- Page info end -->
 +
== Introduction ==
  
=== Introduction ===
+
Basic {{l|Primitive_Layer|primitives}} such as {{l|Circle Layer|circles}} or {{l|Rectangle Layer|rectangles}}, that we have learn to work with {{l|Doc:Adding_Layers|previously}}, are all great but they are pretty much geometrically inflexible. What about creating more complex shapes? To do this, we use the {{l|Spline Tool}}.
  
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 [[bline tool]].
+
== Spline Tool ==
  
=== Headline ===
+
In Synfig, the construct for describing shapes is called a Spline. This is roughly analogous to a "path" in other programs, except that it is strictly a [https://en.wikipedia.org/wiki/Cubic_Hermite_spline cubic 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.
+
[[File:Toolbox Reset Colors Button_1_0.png|right|frame|Reset Colors button in the Toolbox]] Before we start with the Spline tutorial, let's look at some additional notes on how Synfig works. When you click on the {{l|Spline Tool}}, you will see that the handles from your currently selected object (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 with the Spline 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 Spline Tool &mdash; changing the selection afterward will automatically swap you back to the Transform Tool.  
  
When you click on the [[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 [[Layers Dialog]]. This is normal. Anything you create in the [[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 [[Bline tool]]
+
Now, go ahead and click on the {{Literal|Reset Colors}} button in the lower left corner of the FG/BG color widget in the {{l|Toolbox|toolbox}}. This will reset us back to the default black and white. Also, set the {{l|Spline Tool#Options|line width}} to something nice and thick &mdash; 10pt should do the trick.
 +
 
 +
After you switched to Spline Tool, take a look at the {{l|Tool Options Panel|Tool Options Panel}}. Make sure that only {{Literal|Create Region}}, {{Literal|Create Outline}} and {{Literal|Link Origins}} are checked.
 +
 
 +
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 Spline.
 +
 
 +
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 {{Literal|Delete Vertex}}. Want to split the tangents? Right click on the tangent and hit {{Literal|Split Tangents}}. Want to loop the Spline? Right click on the first vertex and select {{Literal|Loop Spline}}.
 +
 
 +
[[Image:Creating-shapes-2-bline-construction.png|center|frame]]
 +
 
 +
When you are finished placing vertices, you must exit construction mode in order to actually create the Spline layer(s); there are 2 ways to do this:
 +
#Switch to another tool.
 +
#Press the {{Literal|Create}} button at the bottom of the Tool Options Panel (it's the icon that looks like a gear).
 +
For now, just go ahead and switch to the {{l|Transform Tool}}, because we are done with the Spline Tool.
 +
 
 +
[[Image:Creating-shapes-3-bline-region-outline.png|center|frame]]
 +
 
 +
== Editing Splines ==
 +
 
 +
Ok, we now have a nice pretty white region with a thick black outline. Since we checked {{Literal|Create Region}} and {{Literal|Create Outline}} in previous steps, you'll notice that there are two layers that we have created &mdash; the {{l|Outline Layer|Outline}} and the {{l|Region Layer|Region}} in the Layers Panel. Despite the fact that they are two separate layers, their vertices parameter has already been {{l|Linking|linked}} &mdash; so you can select either one and move its handles 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 {{Literal|Remove Item (smart)}}. Want to insert a point somewhere? Right click on the segment where you want to insert something and hit {{Literal|Insert item (smart)}}.
 +
 
 +
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. As mentioned in the {{l|Doc:Adding Layers|previous tutorial}}, you can {{l|group|group}} layers into hierarchy.
 +
 
 +
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 Outline Layer, the Region Layer has no width data) and tweaking with the width handles. By default, these are masked. To show them, press {{Shortcut|alt|5}} or click {{Literal|Toggle width handles}} button at the top of the canvas window (the fifth one from the left). Repeat to hide them again. You can also see other things to mask via the {{l|Canvas Menu Caret}}: {{c|View|Show/Hide Handles}}.
 +
 
 +
== Using tablet to draw shapes ==
 +
 
 +
If you have a [http://en.wikipedia.org/wiki/Graphics_tablet graphic tablet] you can use Draw Tool to create Splines.
 +
 
 +
Synfig Studio supports pressure sensitivity, but you need to configure it first. Go to {{c|File|Input Devices...}} from toolbox menu. In the {{Literal|Input}} dialog find your tablet's stylus device and set its {{Literal|Mode}} to {{Literal|Screen}}. Click {{Literal|Save}} and then {{Literal|Close}}.
 +
 
 +
Now grab your stylus, create a new file and click on the Draw Tool button in the toolbox. Set the default line width value to be big enough &mdash; say, 15pt &mdash; otherwise you will not notice any pressure sensitivity effect. Choose brown as the {{l|New_Layer_Defaults#Brush_Colors|default fill color}}.
 +
 
 +
{{Note|Note|Steps above should be done with the stylus of your tablet, not the mouse. Synfig Studio remembers settings for each input device independently. That's why if you set those options with your mouse device they will not have any effect when you switch to stylus.}}
 +
In the Tool Options Panel, make sure that you have the same options as shown on the screenshot below.
 +
 
 +
[[File:DrawToolOptions.png|center|frame]]
 +
 
 +
Now let's draw some thing like a curvy mountain background. Start drawing a line from the left border to the middle of the canvas. Try to vary your stylus pressure while you are drawing. Stop near the center of the canvas. This is your first line. Notice the new outline layer created in the Layers Panel.
 +
 
 +
[[Image:Creating-shapes-4-draw.png|center|frame]]
 +
 
 +
Point your stylus at the last handle of your new Spline and continue drawing to the right border of the canvas. When you finish, look at the Layers Panel again. There's still only one outline layer. Synfig Studio is smart enough to figure out that you don't need a new outline layer and properly extends the last one. You can extend the Spline from both ends, but if you start drawing from any other place of the canvas a new outline layer will be created. Though your first line will remain selected and nothing stops you from extending it later.
 +
 
 +
Back to our artwork. In the Tool Panel hit the button with the bucket icon to fill the outline we just created. A region layer will appear at the top of the layer we are working with. Select the outline layer and press the {{Literal|Raise Layer}} button in the layers panel to put the outline layer on top of the region.
 +
 
 +
[[Image:Creating-shapes-5-draw.png|center|frame]]
 +
 
 +
Extend a line from both sides down to the corners of the canvas to make the fill appear at the bottom. Great.
 +
 
 +
[[Image:Creating-shapes-6-draw.png|center|frame]]
 +
 
 +
Go ahead and add a few more lines on top of the filled area to give it a mountain-like look. If brown handles are in your way, you can hide them by clicking the {{Literal|Toggle vertex handles}} button at the top of the canvas window (the second one from the left).
 +
 
 +
[[Image:Creating-shapes-7-draw.png|center|frame]]
 +
 
 +
Draw tool is great for drawing complex shapes, but you end up with a bunch of handles, which are hard to manipulate with the Transform Tool in the way we described above. There are two solutions here.
 +
 
 +
First, you can increase the {{Literal|Smooth}} value in the Tool Options Dialog while using Draw Tool. That will reduce the count of vertices produced at drawing time, but will make your shape less detailed.
 +
 
 +
Second, you can use Smooth Move Tool to deform an existing shape. Go for it and click the Smooth Move Tool button in the toolbox. The trick about this tool is that it affects ''selected handles only''. Press and hold your left mouse button in an empty place of the canvas. Drag to create a selection box. Release the mouse button when you are done. Or just hit {{Shortcut|Ctrl|a}} to select all handles. Now you can deform the selected segments of Spline. You can change the size of the influence area by tweaking {{Literal|Radius}} in the Tool Options Panel.
 +
 
 +
What about outline width? There is a Width Tool for that purpose. It is designed for increasing or decreasing the width of a line much like you would with a pencil on paper. Click the Width Tool button in the toolbox, move your stylus over the line you want to change, press and move the cursor back and forth along the line, like you are scratching something. The width of the outline will be increased at the places where you moved the cursor. If you want to decrease the width, just hold "Ctrl" while scratching. Easy!
 +
 
 +
If you don't want width handles to be displayed, during usage of the Width Tool, just turn them off by pressing the {{Literal|Toggle width handles}} button at the top of the canvas window.
 +
 
 +
== Other ways to create Splines ==
 +
 
 +
Is that all? Not yet. You can use Circle, Rectangle, Star and Polygon tools to create Splines too. Just check the {{Literal|Create Outline}} and {{Literal|Create Region}} options in the Tool Options Panel when using those tools.
 +
 
 +
Creating geometric primitive as Spline gives you a better control over it's shape and look. For example, if you want a deformed star, then you can use the Star Tool to create it as outline and region Splines and then use the Transform Tool to deform it.
 +
 
 +
Now you are ready for the {{L|Doc:Flower Animation|last tutorial}} in this section. Hang on!
 +
 
 +
== Links ==
 +
 
 +
A video on this subject is available [https://youtu.be/FBnBE9t3Jd8 here]
 +
 
 +
 
 +
{{Navigation|Category:Manual|Doc:Flower Animation}}

Latest revision as of 18:08, 31 July 2019

Navigation Navigation:  <<Manual>>


Introduction

Basic primitives such as circles or rectangles, that we have learn to work with previously, are all great but they are pretty much geometrically inflexible. What about creating more complex shapes? To do this, we use the Spline Tool.

Spline Tool

In Synfig, the construct for describing shapes is called a Spline. This is roughly analogous to a "path" in other programs, except that it is strictly a cubic hermite spline.

Reset Colors button in the Toolbox
Before we start with the Spline tutorial, let's look at some additional notes on how Synfig works. When you click on the Spline Tool, you will see that the handles from your currently selected object (if there was one) will disappear, but the layer(s) will still remain selected in the Layers Panel. This is normal. Anything you create with the Spline 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 Spline Tool — changing the selection afterward will automatically swap you back to the Transform Tool.

Now, go ahead and click on the "Reset Colors" button in the lower left corner of the FG/BG color widget in the toolbox. This will reset us back to the default black and white. Also, set the line width to something nice and thick — 10pt should do the trick.

After you switched to Spline Tool, take a look at the Tool Options Panel. Make sure that only "Create Region", "Create Outline" and "Link Origins" are checked.

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 Spline.

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 Spline? Right click on the first vertex and select "Loop Spline".

Creating-shapes-2-bline-construction.png

When you are finished placing vertices, you must exit construction mode in order to actually create the Spline layer(s); there are 2 ways to do this:

  1. Switch to another tool.
  2. Press the "Create" button at the bottom of the Tool Options Panel (it's the icon that looks like a gear).

For now, just go ahead and switch to the Transform Tool, because we are done with the Spline Tool.

Creating-shapes-3-bline-region-outline.png

Editing Splines

Ok, we now have a nice pretty white region with a thick black outline. Since we checked "Create Region" and "Create Outline" in previous steps, you'll notice that there are two layers that we have created — the Outline and the Region in the Layers Panel. Despite the fact that they are two separate layers, their vertices parameter has already been linked — so you can select either one and move its handles 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 hit "Insert item (smart)".

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. As mentioned in the previous tutorial, you can group layers into hierarchy.

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 Outline Layer, the Region Layer has no width data) and tweaking with the width handles. By default, these are masked. To show them, press Alt5 or click "Toggle width handles" button at the top of the canvas window (the fifth one from the left). Repeat to hide them again. You can also see other things to mask via the Canvas Menu Caret: "View → Show/Hide Handles".

Using tablet to draw shapes

If you have a graphic tablet you can use Draw Tool to create Splines.

Synfig Studio supports pressure sensitivity, but you need to configure it first. Go to "File → Input Devices..." from toolbox menu. In the "Input" dialog find your tablet's stylus device and set its "Mode" to "Screen". Click "Save" and then "Close".

Now grab your stylus, create a new file and click on the Draw Tool button in the toolbox. Set the default line width value to be big enough — say, 15pt — otherwise you will not notice any pressure sensitivity effect. Choose brown as the default fill color.

Note

Steps above should be done with the stylus of your tablet, not the mouse. Synfig Studio remembers settings for each input device independently. That's why if you set those options with your mouse device they will not have any effect when you switch to stylus.
note end

In the Tool Options Panel, make sure that you have the same options as shown on the screenshot below.

DrawToolOptions.png

Now let's draw some thing like a curvy mountain background. Start drawing a line from the left border to the middle of the canvas. Try to vary your stylus pressure while you are drawing. Stop near the center of the canvas. This is your first line. Notice the new outline layer created in the Layers Panel.

Creating-shapes-4-draw.png

Point your stylus at the last handle of your new Spline and continue drawing to the right border of the canvas. When you finish, look at the Layers Panel again. There's still only one outline layer. Synfig Studio is smart enough to figure out that you don't need a new outline layer and properly extends the last one. You can extend the Spline from both ends, but if you start drawing from any other place of the canvas a new outline layer will be created. Though your first line will remain selected and nothing stops you from extending it later.

Back to our artwork. In the Tool Panel hit the button with the bucket icon to fill the outline we just created. A region layer will appear at the top of the layer we are working with. Select the outline layer and press the "Raise Layer" button in the layers panel to put the outline layer on top of the region.

Creating-shapes-5-draw.png

Extend a line from both sides down to the corners of the canvas to make the fill appear at the bottom. Great.

Creating-shapes-6-draw.png

Go ahead and add a few more lines on top of the filled area to give it a mountain-like look. If brown handles are in your way, you can hide them by clicking the "Toggle vertex handles" button at the top of the canvas window (the second one from the left).

Creating-shapes-7-draw.png

Draw tool is great for drawing complex shapes, but you end up with a bunch of handles, which are hard to manipulate with the Transform Tool in the way we described above. There are two solutions here.

First, you can increase the "Smooth" value in the Tool Options Dialog while using Draw Tool. That will reduce the count of vertices produced at drawing time, but will make your shape less detailed.

Second, you can use Smooth Move Tool to deform an existing shape. Go for it and click the Smooth Move Tool button in the toolbox. The trick about this tool is that it affects selected handles only. Press and hold your left mouse button in an empty place of the canvas. Drag to create a selection box. Release the mouse button when you are done. Or just hit CtrlA to select all handles. Now you can deform the selected segments of Spline. You can change the size of the influence area by tweaking "Radius" in the Tool Options Panel.

What about outline width? There is a Width Tool for that purpose. It is designed for increasing or decreasing the width of a line much like you would with a pencil on paper. Click the Width Tool button in the toolbox, move your stylus over the line you want to change, press and move the cursor back and forth along the line, like you are scratching something. The width of the outline will be increased at the places where you moved the cursor. If you want to decrease the width, just hold "Ctrl" while scratching. Easy!

If you don't want width handles to be displayed, during usage of the Width Tool, just turn them off by pressing the "Toggle width handles" button at the top of the canvas window.

Other ways to create Splines

Is that all? Not yet. You can use Circle, Rectangle, Star and Polygon tools to create Splines too. Just check the "Create Outline" and "Create Region" options in the Tool Options Panel when using those tools.

Creating geometric primitive as Spline gives you a better control over it's shape and look. For example, if you want a deformed star, then you can use the Star Tool to create it as outline and region Splines and then use the Transform Tool to deform it.

Now you are ready for the last tutorial in this section. Hang on!

Links

A video on this subject is available here


Navigation Navigation:  <<Manual>>