Outils pour utilisateurs

Outils du site


issue106:inkscape

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
issue106:inkscape [2016/03/08 19:13] d52frissue106:inkscape [2016/04/15 16:08] (Version actuelle) – créée andre_domenech
Ligne 1: Ligne 1:
-**This month we'll conclude our tour of the Live Path Effects that are available in both versions 0.48 and 0.91 of Inkscape, starting with perhaps one of the most useful.**+**This monthwe'll conclude our tour of LPEs by looking at the two new additions to Inkscape 0.91: Power Stroke and Clone Original PathOne limitation artists often find with Inkscape is its inability to produce variable thickness strokes. There are ways to fake itwhich pretty much all rely on the “stroke” actually being a filled path in its own right. That inevitably leads to the follow-up problem of how to fill a shape drawn using such fake strokes. These two LPEs are Inkscape's answer to those problems.**
  
-**Pattern Along Path+Ce mois-ci, nous allons conclure notre tour des LPE en étudiant les deux nouveautés d'Inkscape 0.91 : Contour dynamique et Cloner le chemin original. Une des limitations que les artistes trouvent à Inkscape est son incapacité à produire des contours d'épaisseur variable. Il y a des façons de le simuler, qui s'appuient beaucoup sur un « contour » qui est à proprement parler un chemin rempli à part entière. Ceci conduit inévitablement au problème qui en découle : comment remplir une forme tracée avec de tels faux contours. Ces deux LPE apportent une réponse à ces problèmes.
  
-This effect is often referred to as “PAP” in forum posts and bug reports so, for brevity, I'll do the same here. Like the Spiro Spline effect, PAP can be applied automatically as part of the normal drawing process. To do so, you simply have to draw a shape for use as your “pattern”, copy it to the clipboard, and select the “Shape: From Clipboard” option when using the Pencil or Bézier tools. See part 17 of this series for more details on the technique, but suffice to say that the result is that your path will have the PAP effect applied to it – albeit with some default options selected. Whether you initially apply the LPE like this, or by explicitly adding it via the dialog, you'll find more controls available to you within the dialog's UI, in order to tweak the effect.+**Power Stroke
  
-“Pattern along path” is something of a misnomer; it should more correctly be called “path along path” as the effect is one of taking a source path (the pattern) and stretching or repeating it along the skeleton pathIn part 17, for example, I drew a rounded bow-tie shape, copied it to the clipboard, then used it to provide the shape for the Bézier toolresulting in strokes which appear thinner in the middle.+This effect lets you vary the width of your path by adjusting stroke knots” along its lengthFor cases where you might otherwise use PAP to provide some variability to the stroke widthPower Stroke will often achieve a similar effect but with more flexibility. Let's start with the simple example of applying this LPE to a straight line:
  
-It's a useful techniquebut the same visual result could also be achieved by using the Bend LPE. There'philosophical difference between the two approaches, though: the Bend LPE uses your “pattern” as the skeleton path, then lets you distort it with an on-canvas path; the PAP approachhoweverlets you copy the “pattern” to the clipboardthen stretches it to match the shape of the skeleton pathOn the surface, therefore, it all boils down to whether you want the skeleton path to be your pattern or your target, but there's more to the PAP effect than that. The difference really becomes apparent only when you start to change the settings.**+The top linein red, represents the original skeleton path. On applying the LPE the first result you'll see is that the skeleton is replaced by closed path that encloses the original shape. The closed path takes on the attributes of the original skeleton path, soin this caseit has a red stroke and a transparent fillresulting in the second shape in the imageUsually you'll want your Power Stroke to be filled with no outline, so in the third image I've changed the style to a black fill with no stroke. You would be forgiven for thinking that we've just gone through a convoluted way to produce a slightly thicker black line with rounded end caps, but the fourth image shows the real secret to Power Stroke: this is the same as the third object, but with the Node tool selected (F2), revealing not only the normal start and end nodes, but three additional pink or purple colored handles (the “stroke knots”) sitting on the periphery of the shape.**
  
-**Perhaps the most important setting is the “Pattern Copies” pop-up. This defaults to “Single, stretched”, but there are three other options available, giving the following possibilities: +Contour dynamique
-• Single, stretched – puts a single copy of your pattern onto the skeleton path, stretching it to the length of the latter (or shrinking it, if the skeleton path is shorter than the length of your pattern). +
-• Single – puts a single copy of the pattern onto the skeleton path. It's distorted to match the shape of the skeleton, but isn't stretched or compressed in length. +
-• Repeated, stretched – puts multiple copies of the pattern onto the skeleton path, stretching each of them in order to fill the length of the latter. +
-• Repeated – puts multiple copies of the pattern onto the skeleton path, but does not stretch them, usually resulting in a path that falls short of the skeleton's length.+
  
-You can see these four possibilities shown in order in this example – the green bow-tie at the top is the pattern that's being usedwhilst the red line is the skeleton path.+Cet effet vous permet de faire varier la largeur de votre chemin en ajustant des « points de décalage » sur sa longueur. Dans les cas où vous auriez utilisé à la place l'effet Motif suivant un chemin pour donner de la variabilité à votre largeur de trait, le Contour dynamique réalise souvent un effet similairemais avec plus de flexibilitéCommençons par un simple exemple en appliquant ce LPE à une ligne droite :
  
-The Pattern Source buttons are the usual quartet used to define the path that's used as the pattern – by editing an on-canvas pathusing one from the clipboardor linking to an existing pathIn this case, it's usually easiest to draw your pattern separatelythen copy it to the clipboard and use the third button to apply it to your skeleton pathThe first button can then be used to display copy of the pattern on the canvasfor fine-tuning the shape.**+La ligne du hauten rougereprésente le chemin squelette d'origineA l'application de ce LPEle premier résultat visible est que le squelette est remplacé par un chemin fermé qui enferme la forme originaleLe chemin fermé prend les attributs de la forme squelette d'origine ; ainsi, dans ce cas, elle un trait rouge et un remplissage transparent, autrement dit, la deuxième image. Habituellement, vous voudrez que votre Contour dynamique soit rempli sans avoir de bord ; dans la troisième image, j'ai donc changé le style pour un remplissage noir sans trait. Vous seriez pardonné de penser que nous avons juste trouvé une façon détournée de produire une ligne noire un peu plus épaisse avec des embouts arrondis, mais la quatrième image montre le vrai secret du Contour dynamique : c'est la même que le troisième objet, mais avec l'outil Nœuds sélectionné (F2), révélant non seulement les nœuds de départ et d'arrivéemais aussi trois poignées additionnelles roses et violettes (les « points de décalage ») situées à la périphérie de la forme.
  
-**The “thickness” of your pattern, perpendicular to the skeleton path, can be set with the Width parameter, with a checkbox to determine whether to use a fixed pixel width, or a multiple of the pattern's lengthWhen using either of the “repeated” options, the gaps between shapes can be set using the Spacing field. Negative values are allowed, but only up to -90% of the pattern width. The Normal Offset can be used to push the pattern to one side or the other of your skeleton path, whilst Tangential Offset pushes it along the length of the path. The latter can be used to adjust the space at the end of the non-stretched optionsbut also works on the stretched modes to add some space at the start of the pathbefore the pattern beginsOnce again, there's a checkbox to determine whether Spacing or Offsets are in fixed pixel values or proportional to the pattern length.+**The effect automatically adds these nodes at the start and end of the path, and somewhere towards the middleUsing the Node tool they can be dragged perpendicularly to the skeleton path to set the stroke width at that point, but can also be dragged along the path to change the location at which the thickness changes. Taking the previous example; dragging the handles around a little lets us easily produce this result: 
 +As you can see, the thickness of the line is set by each of the nodeswith sections in-between ramping linearly from one node to the nextLooking at the LPE'UI you'll notice pop-up menu for the Interpolator Type. This is what is producing the linear change; pick another value to alter the way in which the width of the path is modified from one node to the next.
  
-The penultimate control indicates to Inkscape that the pattern has a vertical orientation rather than a horizontal oneThis is particularly useful to apply vertical pattern to a vertical skeleton path:+You can't fail to have noticed the rounded ends to the line. They weren't present on the original skeleton path, so where did they come from? A quick scan of the effect UI will show that several of the controls from the Stroke Style tab of the Fill and Stroke dialog are replicated as part of the LPEFrom there, you can set start and end caps (the source of the rounded ends in this case), as well as the join type and miter limit for paths with angles in them. These all operate in similar way to the equivalent controls in the Style and Stroke dialog, except that the LPE offers more options.**
  
-Because it effectively rotates the pattern through 90° before applying it to the skeletonit can also be used to produce a different effectwhen used with a horizontal pattern and path.**+L'effet ajoute ces nœuds automatiquement au début et à la fin du cheminet quelque part vers le milieu. En utilisant l'outil Nœudsils peuvent être tirés perpendiculairement au chemin squelette pour régler l'épaisseur du trait à cet endroit, mais ils peuvent être aussi déplacés le long du chemin pour modifier l'endroit où l'épaisseur changePrenons l'exemple précédent : en déplaçant un peu les poignées, nous produisons facilement ce résultat : 
  
-**Of coursethe same effect could be produced by simply rotating the pattern before it's used in the LPE.+Comme vous pouvez le voirl'épaisseur de la ligne est réglée par chacun des nœuds, avec les sections intermédiaires qui croissent linéairement de l'un à l'autre. En regardant l'interface utilisateur de ce LPE, vous noterez un menu déroulant pour le Type d'interpolateur. C'est ce qui détermine la modification linéaire ; prenez une autre valeur et la façon dont la largeur évolue d'un nœud à l'autre est modifiée.
  
-The final control is used when your pattern is not a closed shape, but has unconnected endsBy setting this to a positive numberany line ends that are separated by less than the specified amount will be fused together to produce a continuous line. In this example, I've lopped off the ends of my bow-tie and slightly shortened the top section to exaggerate the effectThe two PAP examples show the effect of using this pattern with Fuse Nearby Ends set to 0then set to a suitable positive value. +Vous avez certainement noté les terminaisons arrondies de la ligneElles n'étaient pas présentes dans le chemin squelette d'origine ; alorsd'où viennent-t-elles ? Un coup d’œil rapide sur l'interface de l'effet montrera que plusieurs contrôles de l'onglet Style de trait du dialogue Remplissage et contour sont répliqués dans ce LPEDepuis celui-civous pouvez régler les terminaisons de début et de fin (la source des terminaisons arrondies dans ce cas), aussi bien que le type de raccord et la limite de raccord pour les chemins comportant des angles. Ils opèrent tous de la même manière que dans le dialogue Remplissage et contour, sauf que le LPE offre plus d'options.
-Ruler+
  
-This LPE doesn't really require much explanation – it simply draws tick marks perpendicular to your skeleton path to give the appearance of the graduations on a rulerYou can define the distance between tick marksthe frequency of major marks, and the length of both the major and minor ticks. You can also determine which side of the skeleton the ticks will be drawn onor have them centered to appear evenly on both sides.+**With three handles for manipulating the Power Stroke, you can already produce some useful results, but the real power comes when you add even more handles. Unfortunately, this is done via a rather clunky approach that can sometimes be a bit unstable, particularly on more complex paths. The first step is to select your path and switch to the Node tool, so that the handles are visible. Next you have to hold the Control-key whilst clicking on a handleThis will create a second handledirectly on top of the first one, which you can then drag to its new location. If you do experience problems, such as the handle becoming detached from the path and having no effectundo your changes, and then try again, duplicating a different handle insteadOur simple line with three handles quickly turns into something more bumpy once a few more are added:
  
-One use for this effect is, as the name suggests, to create rulerFor this example I've used a combined pair of parallel lines for the skeleton pathand overlaid them onto a rounded rectangle and circle.**+To delete a handle you have to click on it whilst holding the Control and Alt keys. There's no way to select multiple handles in order to move or delete several at timeYou've probably noticed that you can drag handles past one another with ease – that's thanks to the Sort Points checkbox in the effect's UI. Uncheck that for a different behaviour in which the shape is drawn from handle to handle based on their original ordering rather than their final position along the line. It's useful for some effectsbut generally it's better to leave the box checked.
  
-**It'also possible to use this LPE for more artistic effectsthoughWhen combined with other shapes it'easy for your ruler to become a zipper, a simple pathway, or even a protractor. By copying the object and applying different settings and colors to the LPE, you can easily get the effect of coloured rays emanating from your shape.+With all that background out of the way, let'take a look at this LPE when used on a more complex path. It's time to return to my efforts to manually trace “Frankie” (see parts 16-21 for my previous attempts at this): 
 +The parts of the path that stretch inside the outline – the mouthnose and ears – were particularly fiddly to get rightIn practice it'probably faster to just use a simple path for the outlinethen draw those parts separately. But you can clearly see how the LPE allows the path to thicken and thin to give more of a dynamic feel to the character than a simple fixed width line could achieve.**
  
-One frustrating omission from this LPE is the ability to suppress the original skeleton path in the outputThis makes it more difficult to chain this effect with othersA workaround is to use Path > Object to Path to “fix” the LPE before manually removing the skeleton paththen applying other effects – but you do then lose the ability to do live edits to the parametersFor examplechaining the Rulerthen PAP effects on a circlegives a result like the one on the left herewhereas the example on the right shows the “fixed” version with the skeleton removed before the PAP effect is added.**+Avec trois poignées pour manipuler le Contour dynamique, vous pouvez déjà produire quelques résultats utiles, mais la pleine puissance est atteinte en ajoutant des poignées supplémentairesMalheureusement, ceci se fait par une approche malaisée qui peut être parfois instable, particulièrement avec des chemins complexesD'abordsélectionnez votre chemin et passez sur l'outil Nœuds, de telle sorte que les poignées soient visiblesPuisen appuyant sur la touche Ctrl, cliquez sur une poignée. Cela créera une seconde poignée qui recouvre la première, que vous pouvez ensuite tirer vers sa nouvelle position. Si vous avez des problèmestels qu'un détachement de la poignée du chemin et une perte d'effetannulez vos modifications et essayez à nouveauen dupliquant une autre poignéeNotre simple ligne avec trois poignées se transforme en quelque chose de plus bosselé en en ajoutant quelques-unes de plus :
  
-**Sketch+Pour supprimer une poignée, cliquez dessus tout en appuyant sur les touches Ctrl et Alt. Il n'y a aucun moyen de sélectionner plusieurs poignées pour les bouger ou les enlever d'un coup. Vous avez probablement noté que vous pouvez facilement tirer les poignées l'une au-delà de l'autre, ceci grâce la case à cocher « Trier les points » dans l'interface de l'effet. Décochez-la pour un comportement différent, où la forme est tracée de poignée en poignée en fonction de leur position d'origine plutôt que leur position finale le long de la ligne. C'est utile pour certains effets, mais c'est généralement mieux de laisser la case cochée.
  
-This LPE does one simple thing, but, like the Hatches effect, the number of controls greatly exceeds any practical requirements for such a deliberately un-tamed result. In short, this effect simply replaces each part of your path with a number of smaller paths, overlapping and with their ends offset from the skeleton by a semi-random amount. It gives the effect of having sketched your path with repeated strokes of a pencil – and can even include construction lines for extra effect.+Le contexte étant décrypté, regardons ce LPE quand nous l'utilisons sur un chemin plus complexeC'est le moment de revenir à mon effort pour tracer « Frankie » à la main (voyez les parties 16 à 21 pour mes tentatives précédentes) : 
  
-At the top of the UI are the controls for setting the number of paths that will be used for approximating each section of the originaland for determining how long each can be and how much they can overlapUsually it's sufficient to adjust only the top couple of controls to set the “density” of the sketch strokes – fewerlonger strokes for a light sketch effect, more short strokes for the appearance of a more heavily scribbled line.+Les parties du chemin qui dépassent de la ligne générale - la bouchele nez et les oreilles - ont été particulièrement délicates à mettre au pointEn pratique, c'est probablement plus rapide de n'utiliser qu'un simple chemin pour la ligne généralepuis de dessiner ces parties séparément. Mais vous pouvez clairement voir comment le LPE permet d'épaissir et de rétrécir le chemin pour donner une plus grande impression de mouvement au personnage qu'avec une simple ligne à largeur fixe.
  
-The Average Offset and Max Tremble controls are useful for determining the “thickness” of the sketched result. There's also a control for the number of construction lines – set it to zero if you don't want any. In this same area of the UI, the Max Length parameter is useful to sufficiently extend your construction lines from the original shape. As with the Hatches LPE, the dice buttons can be used to set a new random seed used for some of the parameters, which is only really of use for making otherwise identical copies look dissimilar.+**Clone Original Path
  
-Note that this effect can easily produce lots of new nodes, so be careful when using it as anything other than the last LPE in a chain. Here'small showcase of the kind of results it can produce.**+Our final LPE follows on directly from those efforts to manually trace Frankie. One problem with the Power Stroke or PAP effects is that they draw strokes as filled paths, so setting a fill color on them actually changes the color of the “stroke”, not the area inside it. To clarify, if I were to select the Power Stroke path in the Frankie example and set its fill color to red, the result would just be red Power Stroke, not black Power Stroke with a red fill inside the face area.
  
-**Stitch Sub-Paths+Previously, I've shown you how to work around this limitation using the Bucket Fill tool or by manually drawing a second path that you can fill and then send below the outline. Neither of these solutions is ideal, and both can take a lot of manual tweaking to get right. Wouldn't it be easier if you could just fill the original skeleton path with a different color, without affecting the fill that's used for the Power Stroke? Effectively that's what the Clone Original Path effect lets you do.
  
-This effect can be thought of as perpendicular version of the Interpolate Sub-paths LPE that I described last monthWhereas that creates connection between two sub-paths by introducing interstitial versions that gradually distort from the shape of one path to the other, the Stitch effect joins the two sub-paths directly with series of new paths that link evenly spaced points on one path to evenly spaced points on the other. In other words, it draws some lines from one sub-path to another.+There are few ways to use this effect, but we'll start with the long-winded method, to give you a better understanding of what's happeningFirst you'll need sacrificial skeleton. Don't worry, we're not heading into Voodoo territory, but rather you'll need a skeleton path that will completely disappear once you use the LPE. Its only purpose is to serve as an object to apply the effect to, so simple straight line will suffice. Select the path and add the Clone Original Path LPE to it, then gasp in amazement as… nothing happens. There are a few more steps to go through before the effect has any visible impact.**
  
-Once again there are too many controls to be useful. You really only need the first parameter – for setting the number of new paths to draw – and the quartet of buttons for manipulating the “Stitch path”. Most of the other controls are there to let you add some randomness to your stitches, should you wish.+Cloner le chemin original
  
-In its simplest form, this effect just draws straight lines from one sub-path to anotherIt can work on shapes with more than two sub-pathsbutfor anything other than simple shapesit can be rather unpredictable as to what the result will beBy using the buttons to pastelink toor modify a stitch path, you can replace the straight-line stitches with something more complex. It can be good for adding a little curvature to the linesbut once again it becomes difficult to control the result as things get more complex.+Notre dernier LPE poursuit directement ses efforts pour tracer Frankie à la mainUn problème avec le Contour dynamique ou l'effet « Motif suivant un chemin »c'est qu'ils tracent des traits sous forme de chemins pleinsce qui fait qu'un changement de leur couleur de remplissage modifie la couleur du traitmais pas la surface intérieurePour clarifiersi vous aviez sélectionné le chemin en Contour dynamique dans l'exemple de Frankie et passé la couleur en rougele résultat aurait été un contour dynamique rougeet non un trait noir de contour dynamique avec un remplissage en rouge de la surface du visage.
  
-In the example aboveyou can seein the left hand columnsome simple stitching between two basic shapesThe middle and bottom examples show the effect of altering the shape of the stitch pathThe stars show a simple stitchingthe application of some randomness via the UIand the result of bending the stitch path (skeleton path omitted for clarity).**+Précédemmentj'avais montré comment contourner la limitation en utilisant l'outil Remplirune zone bornéeou en dessinant à main levée un second chemin qui peut être rempli et passé sous la ligne généraleAucune de ces solutions n'est idéale et chacune peut demander pas mal de temps de réglage pour un parfait ajustementEst-ce que ça ne serait pas plus simple si vous pouviez juste remplir le chemin squelette d'origine avec une couleur différentesans effet sur le remplissage qui aurait été utilisé par le Contour dynamique ? Effectivementc'est ce que vous pouvez faire avec Cloner le chemin original.
  
-**VonKoch+Il y a plusieurs manières d'utiliser cet effet, mais nous allons commencer avec la méthode la plus longue, pour vous donner une meilleure compréhension de ce qui se passe. D'abord, nous avons besoin d'un squelette à sacrifier. Pas de panique, nous n'entrons pas dans le domaine du Vaudou, mais disons que nous avons besoin d'un chemin squelette qui disparaîtra complètement quand nous aurons utilisé l'effet. Son seul intérêt est d'être un objet sur lequel appliquer l'effet ; aussi, une simple ligne suffira. Sélectionnez le chemin et ajoutez-lui le LPE Cloner le chemin original, puis, pour votre plus grand étonnement..., rien ne se passe. Il y a quelques étapes de plus à réaliser avant que l'effet ait un impact visible.
  
-Finally we have the VonKoch LPEIf the name sounds familiarthen perhaps you've come across the Koch Snowflake – fractal shape created by recursively replacing the middle of each side of an equilateral triangle with a smaller equilateral triangleIt was derived from paper by Swedish mathematician Helge von Kochwho described the process for one side of the snowflake shapecreating “Koch curve”. This image shows the first four iterations of the curve:+**Having applied the effect, you next need to select your Power Stroked path, then copy it to the clipboardRe-select the sacrificial skeleton and use the first button in the effect's UI to paste the path from the clipboard. Your skeleton will disappearand it will seem that the Power Stroked path has been selected instead. Appearances can be deceptive, however – use the arrow keys to move the selected item and you'll realise that you've actually got a clone of the skeleton path used in the Power Stroke. Fill it with color and send it back in the stack and you've achieved in seconds what would have taken several minutes to do manually. 
 +You can fill your clone with a gradient or pattern, if you prefer, or change the stroke styleIn principle you can also apply other LPEs – although they don't always chain as well as you might hope. And because it'cloneyou can change the shape of the original skeleton path (the one used for the Power Stroke)and your filled version will automatically update to match it – comic creators rejoice! No more does every tweak to an outline have to entail corresponding manual update to the fill shape!
  
-When you apply this LPEyou'll find that a pair of new copies of your path appear on the canvas. Within the UI you'll also find path buttons for a “Reference Segment” and a “Generating Path”The two new paths you can see correspond to two sub-paths within the Generating Path. If you use the third button to paste different path in, you'll see the number of copies change to reflect the number of sub-paths in the new Generating Path. Somewhat ironically, you have to paste in new path to create a Koch curve, as this requires four copies, not two – so immediately the LPE makes it difficult for a layman to create its eponymous fractal! The Reference Path is used to position the copies on their Generating Path segments – essentially the skeleton is scaled and positioned such that the Reference Path lies on top of each Generating Path segment.+With the cloned path selected, the second button in the UI will select the original – though the classic Shift-D shortcut or Edit > Clone > Select Original menu entry both also workCloning a path in this way isn't restricted to the Power Stroke LPEso if you need copy of the skeleton that you used with any other effect, just follow the same steps.**
  
-If that makes it all sound rather confusing, that's because it is! To adequately explain the operation of this LPE would require an article of its own. If you do wish to explore this one furtherI recommend reading Tavmjong Bah's description in the official Inkscape manualwhich also includes step-by-step instructions for creating Koch curve: http://tavmjong.free.fr/INKSCAPE/MANUAL/html/Paths-LivePathEffects-VonKoch.html+Ayant appliqué l'effetvous devez ensuite sélectionner votre chemin de Contour dynamiquepuis le copier dans le presse-papier. Re-sélectionnez le chemin à sacrifier et utilisez le premier bouton dans l'interface de l'effet pour coller le chemin depuis le presse-papier. Votre squelette disparaîtra et il semblera que le chemin de Contour dynamique été sélectionné à la placeCependant, les apparences sont trompeuses ; utilisez vos touches fléchées pour déplacer l'objet sélectionné et vous réaliserez qu'en fait vous avez un clone du chemin squelette qui est utilisé dans le Contour dynamiqueRemplissez-le d'une couleur et renvoyez-le dans la pile et vous aurez réalisé en quelques secondes ce qui vous aurait demandé plusieurs minutes à la main.
  
-If you do persevere with this LPE, it can produce some impressive results – as well as lot of frustrationI did manage to create Koch Snoflake, the Sierpinski triangle (another stalwart of fractal geometry), and a Sierpinski arrowhead curve, but it is far from intuitive process.**+Vous pouvez remplir votre clone avec un dégradé ou un motif, si vous préférez, ou modifier le style du trait. En principe, vous pouvez appliquer les autres LPE - bien qu'ils ne s'enchaînent pas toujours aussi bien qu'espéré. Et, parce que c'est un clone, vous pouvez changer la forme du chemin squelette d'origine (celui utilisé pour le Contour dynamique), et votre version remplie se mettra à jour automatiquement pour conserver la ressemblance ; créateurs de BD, réjouissez-vous ! Terminées les retouches manuelles de la forme remplie à chaque ajustement de l'esquisse ! 
 + 
 +Le chemin cloné étant sélectionné, le second bouton de l'interface sélectionnera l'original, bien que le raccourci classique Maj-D ou l'entrée de menu Éditer > Cloner > Sélectionner l'original fonctionne aussi. Le clonage d'un chemin de cette façon n'est pas limité au LPE Contour dynamique ; aussi, si vous avez besoin d'une copie du squelette que vous avez utilisé avec un autre effet, suivez simplement les mêmes étapes. 
 + 
 +**You can streamline the creation process a little by copying the Power Stroke path to the clipboard before you create your sacrificial skeleton rather than afterwards. But the Inkscape developers are nicer than that, and have added an option that will automatically create an infinitesimally small sacrificial path that has just a single node, add the Clone Original Path effect to it, and connect it to your original path, all from a single menu entry. Just select the Power Stroked path, then use Edit > Clone > Clone Original Path (LPE), and then set the fill and stroke you want for your clone. The only way it could be any faster is if there was a keyboard shortcut for the menu option. 
 + 
 +But wait! Inkscape 0.91 does include a keyboard shortcut editor. Click on the Edit > Preferences menu item, then in the dialog, drill down to Interface > Keyboard Shortcuts. Expand the Edit section of the pane on the right and you should find Clone Original Path (LPE) in the list. Click in the Shortcut column for that entry, then press the new keyboard shortcut you wish to use (I went for CTRL-ALT-SHIFT-D to keep it in line with the other cloning shortcuts).** 
 + 
 +Vous pouvez rationaliser un peu le processus de création en copiant le chemin du Contour dynamique dans le presse-papier avant de créer le squelette à sacrifier plutôt qu'après. Mais les développeurs d'Inkscape sont encore plus sympas et ils ont ajouté une option qui créera automatiquement un chemin à sacrifier tellement petit qu'il a juste un nœud, lui ajoutera l'effet Cloner le chemin original et le connectera à votre chemin d'origine. Il suffit de sélectionner le chemin du Contour dynamique, puis utilisez Éditer > Cloner > Cloner le chemin original (LPE) ; ensuite, réglez le remplissage et le contour que vous désirez pour votre clone. La seule façon d'accélérer serait d'avoir un raccourci clavier pour l'option du menu. 
 + 
 +Mais attendez ! Inkscape 0.91 doit inclure un éditeur de raccourcis clavier. Cliquez sur l'élément du menu Édition > Préférences, puis, dans le dialogue, descendez jusqu'à Interface > Raccourcis claviers. Agrandissez la partie Édition du panneau de droite et vous devriez trouver Cloner le chemin original (LPE) dans la liste. Cliquez sur la colonne Raccourci de cette entrée, puis appuyez sur le nouveau raccourci clavier que vous souhaitez utiliser (j'ai choisi CTRL-ALT-MAJ-D pour être homogène avec les autres raccourcis du clonage). 
 + 
 +**There's one final trick up the sleeve of this LPE. Back in part 30I introduced the use of “unset” fills and strokes to allow different clones to have different styles and colors. This effect offers another way to achieve a similar result. You can either select an original object that you wish to clone, and then use the Edit > Clone > Clone Original Path (LPE) menu option, or you can select a clone that you've already created and just click the “+” button in the Live Path Effects dialog. Now you can change the color and style of your clone with impunity, safe in the knowledge that changes to the original shape will still be reflected. For obvious reasons this works only where the parent object is a path or can be trivially converted into one – so it does work with stars, spirals and even text objects, but doesn't work with groups or bitmap images. 
 +It's worth noting that this approach does result in second copy of the path data being stored in the clone's XML (see part 43 for details), unlike a normal clone which just hold a reference to the originalThis means that not only is the file size a little larger, but any edits made to the original outside of Inkscape won't be reflected in the LPE clone, whereas they would with “real” SVG clone. One advantage of this approachhowever, is that you don't have to unset the fill and stroke on the original, so you won't be left with a black shape that you might have to hide under another object or by placing it off the side of the page.** 
 + 
 +Il y a un dernier tour dans le sac de ce LPE. Dans la partie 30, j'ai introduit l'utilisation des remplissages et contours « indéfinis » pour permettre à différents clones d'avoir des couleurs et des styles différents. Cet effet offre une autre façon d'arriver au même résultat. Vous pouvez, soit sélectionner un objet original que vous souhaitez cloner et, ensuite, utiliser l'option de menu Éditer > Cloner > Cloner le chemin original (LPE), soit sélectionner un clone que vous avez déjà créé et simplement cliquer sur le bouton « + » dans le dialogue des effets dynamiques. Maintenant, vous pouvez changer la couleur et le style de votre clone sans risque, en sachant qu'un changement dans l'original sera reproduit. Pour des raisons évidentes, ceci ne marche que si l'objet parent est un chemin ou peut y être facilement converti, ainsi, cela fonctionne avec des étoiles, des spirales et même des objets textes, mais ne marche pas avec des groupes ou des images bitmap.  
 + 
 +Il faut signaler ici que cette approche entraîne l'enregistrement d'une seconde copie des données du chemin dans le XML du clone (voir partie 43 pour les détails), contrairement à un clone normal qui ne contient qu'une référence à l'original. Ceci signifie que, non seulement la taille du fichier est plus grande, mais que toute modification de l'original en dehors d'Inkscape ne sera pas reflétée sur le clone LPE, alors qu'elle le serait pour un « vrai » clone SVG. Cependant, un avantage de cette approche est que vous n'avez pas à « indéfinir » le remplissage et le contour de l'original ; vous ne vous retrouverez donc pas avec une forme noire que vous auriez à cacher sous un autre objet ou à mettre à l'écart à l'extérieur de la page. 
 + 
 +**Conclusion 
 + 
 +The Power Stroke and Clone Original Path LPEs are worthy additions to Inkscape 0.91. For comic artist they could be reason enough to upgrade from an older version. Using little more than these two effects produced the best manual trace of Frankie so far: 
 + 
 +We've now reached the end of our tour of LPEs. There are more being added to the development builds all the time, so do check out the dialog with each future version of Inkscape. They represent perhaps the most common way in which the developers have broken through the limitations of the SVG format in order to add functionality that far exceeds what any normal SVG editor could offer. It's true that the UI for some is confusing, they're sometimes a little unstable, and that they often don't chain as well as they should, but it's well worth spending some time to play around with them as they can open path to drawing possibilities that would be impossible or, at least, impractical to produce any other way.** 
 + 
 +Conclusion 
 + 
 +Les LPE Contour dynamique et Cloner le chemin original sont des additions intéressantes dans Inkscape 0.91. Pour un auteur de BD, ils peuvent être une raison suffisante pour passer à la nouvelle version. L'utilisation d'un peu plus que ces deux effets a produit le meilleur tracé de Frankie jusqu'à aujourd'hui : 
 + 
 +Nous avons maintenant atteint la fin de notre tour des LPE. Il y a en permanence des ajouts dans les build du développement, aussi, vérifiez la boîte de dialogue de chaque future version d'Inkscape. Elle représente peut-être la manière la plus courante que les développeurs ont trouvé pour passer outre les limitations du format SVG, de sorte d'ajouter des fonctionnalités qui dépassent largement ce qu'un éditeur SVG normal peut offrir. Il est vrai que, pour certains, l'interface utilisateur est déroutante, qu'ils sont parfois un peu instables et qu'ils ne s'enchaînent pas toujours comme ils le devraient, mais ça vaut le coup de passer du temps à les essayer car ils peuvent ouvrir une piste pour dessiner certaines choses qui seraient impossibles, ou à tout le moins, compliquées à réaliser par d'autres voies.
issue106/inkscape.1457460826.txt.gz · Dernière modification : 2016/03/08 19:13 de d52fr