issue88:inkscape
Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
issue88:inkscape [2015/01/19 18:14] – d52fr | issue88:inkscape [2015/01/21 14:56] (Version actuelle) – auntiee | ||
---|---|---|---|
Ligne 3: | Ligne 3: | ||
At the simplest level, a clone is nothing more than a duplicate of an Inkscape object that maintains a link to the original. Changes to the original are automatically propagated to the clone, making them ideal when you need several identical objects in an image. Creating a clone is as simple as selecting the object and using the Edit > Clone > Create Clone menu entry, or just pressing the Alt-D keyboard shortcut. The new clone will be created directly on top of the original object, and will be selected automatically so that you can immediately move it to somewhere else.** | At the simplest level, a clone is nothing more than a duplicate of an Inkscape object that maintains a link to the original. Changes to the original are automatically propagated to the clone, making them ideal when you need several identical objects in an image. Creating a clone is as simple as selecting the object and using the Edit > Clone > Create Clone menu entry, or just pressing the Alt-D keyboard shortcut. The new clone will be created directly on top of the original object, and will be selected automatically so that you can immediately move it to somewhere else.** | ||
- | Dans cet article, je vais commencer à regarder les clones dans Inkscape. Les clones peuvent être facilement ignorés car considérés comme des fonctionnalités mineures, mais, avec quelques astuces, vous pouvez les utiliser pour donner vie à de merveilleuses fonctionnalités qui mériteraient plusieurs articles juste pour couvrir les bases. | + | Dans cet article, je vais commencer à regarder les clones dans Inkscape. Les clones peuvent être facilement ignorés car considérés comme des fonctionnalités mineures, mais, avec quelques astuces, vous pouvez les utiliser pour donner vie à de merveilleuses fonctionnalités qui mériteraient plusieurs articles juste pour en couvrir les bases. |
- | Au niveau le plus simple, un clone n'est rien d' | + | Au niveau le plus simple, un clone n'est rien d' |
**With a clone selected, the Edit > Clone > Select Original menu item (or Shift-D shortcut) will select the original object with which the clone is linked – its “parent” if you like. This now gives us a collection of related keyboard shortcuts that are well worth memorising to speed up your work with Inkscape: | **With a clone selected, the Edit > Clone > Select Original menu item (or Shift-D shortcut) will select the original object with which the clone is linked – its “parent” if you like. This now gives us a collection of related keyboard shortcuts that are well worth memorising to speed up your work with Inkscape: | ||
Ligne 19: | Ligne 19: | ||
Initially the Paste In Place option seems a little redundant, given that the Duplicate command appears to achieve the same result. The difference is that Paste In Place also works between layers, and even between Inkscape documents, so you can copy or cut from one drawing' | Initially the Paste In Place option seems a little redundant, given that the Duplicate command appears to achieve the same result. The difference is that Paste In Place also works between layers, and even between Inkscape documents, so you can copy or cut from one drawing' | ||
- | Le clone étant sélectionné, | + | Le clone étant sélectionné, |
- | Ctrl-X - Couper vers le presse-papier | + | Ctrl-X - Couper vers le presse-papier. |
- | Ctrl-C - Copier vers le presse-papier | + | Ctrl-C - Copier vers le presse-papier. |
- | Ctrl-V - Coller depuis le presse-papier (sur la position de la souris) | + | Ctrl-V - Coller depuis le presse-papier (sur la position de la souris). |
- | Ctrl-Alt-V - Coller sur place (à la position de l' | + | Ctrl-Alt-V - Coller sur place (à la position de l' |
- | Ctrl-D - Dupliquer (copier-coller | + | Ctrl-D - Dupliquer (copier-coller |
- | Alt-D - Cloner (une duplication reliée) | + | Alt-D - Cloner (une duplication reliée). |
- | Maj-D - Sélectionner l' | + | Maj-D - Sélectionner l' |
A première vue, l' | A première vue, l' | ||
Ligne 36: | Ligne 36: | ||
As you might expect, all three objects look the same. The difference only becomes apparent when the parent object is modified in some way – such as changing it's fill and stroke, or altering the roundedness of the corners.** | As you might expect, all three objects look the same. The difference only becomes apparent when the parent object is modified in some way – such as changing it's fill and stroke, or altering the roundedness of the corners.** | ||
- | C'est assez pour les explications, | + | C'est assez pour les explications, |
- | Comme vous pouviez vous y attendre, ces trois objets se ressemblent. La différence ne devient apparente que quand le parent est modifié | + | Comme vous pouviez vous y attendre, ces trois objets se ressemblent. La différence ne devient apparente que quand le parent est modifié |
**Our duplicated object, which maintains no link to the parent, remains unaffected. The clone, however, is immediately updated to reflect the changes to its parent object. That makes it useful for creating absolutely identical objects – hence the term “clones” – but, as in real life, it's possible for Inkscape' | **Our duplicated object, which maintains no link to the parent, remains unaffected. The clone, however, is immediately updated to reflect the changes to its parent object. That makes it useful for creating absolutely identical objects – hence the term “clones” – but, as in real life, it's possible for Inkscape' | ||
Ligne 44: | Ligne 44: | ||
It's important to note that these changes are applied after the clone has been synchronised with its parent – you can think of them as being added on to the base attributes of the parent. So the clone' | It's important to note that these changes are applied after the clone has been synchronised with its parent – you can think of them as being added on to the base attributes of the parent. So the clone' | ||
- | Notre objet dupliqué, qui n'a plus de lien avec le parent, reste inchangé. A l' | + | Notre objet dupliqué, qui n'a plus de lien avec le parent, reste inchangé. A l' |
- | C'est important de noter que ces changements ont été réalisés après que le clone ait été synchronisé avec son parent - considérez qu'ils ont été ajoutés aux attributs de base du parent. Ainsi, les couleurs de trait et de remplissage du clone continueront à changer si celles du parent changent et tout changement dans la rotation, le flou ou l' | + | Il est important de noter que ces changements ont été réalisés après que le clone a été synchronisé avec son parent - considérez qu'ils ont été ajoutés aux attributs de base du parent. Ainsi, les couleurs de contour |
**One simple but effective use of this feature is to create drop shadows by blurring a clone and reducing its opacity. This is especially beneficial when dealing with text objects as the shadow will automatically adjust to any edits you may make to the text content. | **One simple but effective use of this feature is to create drop shadows by blurring a clone and reducing its opacity. This is especially beneficial when dealing with text objects as the shadow will automatically adjust to any edits you may make to the text content. | ||
Ligne 54: | Ligne 54: | ||
To keep things simple, I'll just look at a basic three object chain where a grandparent is duplicated or cloned to form a parent which is, in turn, duplicated or cloned to create a child. I've drawn all the possible combinations, | To keep things simple, I'll just look at a basic three object chain where a grandparent is duplicated or cloned to form a parent which is, in turn, duplicated or cloned to create a child. I've drawn all the possible combinations, | ||
- | Une utilisation simple mais efficace de cette fonctionnalité est la création d'une ombre portée en floutant le clone et en réduisant son opacité. C'est particulièrement bénéfique en traitant des objets textes car l' | + | Une utilisation simple mais efficace de cette fonctionnalité est la création d'une ombre portée en floutant le clone et en réduisant son opacité. C'est particulièrement bénéfique en traitant des objets textes, car l' |
- | Si un clone est simplement un autre objet, alors il est sûrement possible de le copier et de le coller. Si c'est possible, alors pourquoi pas le dupliquer ou même le cloner ? Une réponse simple est que vous pouvez faire tout cela avec des clones mais que le résultat pourrait ne pas être toujours ce que vous attendiez. Vous pouvez créer de longues | + | Si un clone est simplement un autre objet, alors il est sûrement possible de le copier et de le coller. Si c'est possible, alors pourquoi pas le dupliquer ou même le cloner ? Une réponse simple est que vous pouvez faire tout cela avec des clones, mais que le résultat pourrait ne pas être toujours ce que vous attendiez. Vous pouvez créer de longues |
- | Pour rester simple, je vais juste considérer une chaine | + | Pour rester simple, je vais juste considérer une chaîne |
**(1) is the starting point, our grandparent object. This is duplicated to create (2), and cloned to create (3). Each of those objects is duplicated and cloned to produce the remaining items. The provenance of each object is therefore: | **(1) is the starting point, our grandparent object. This is duplicated to create (2), and cloned to create (3). Each of those objects is duplicated and cloned to produce the remaining items. The provenance of each object is therefore: | ||
Ligne 74: | Ligne 74: | ||
(1) est le point de départ, notre objet grand-parent. Il est dupliqué pour créer (2) et cloné pour obtenir (3). Chacun de ces objets est dupliqué et cloné pour produire les autres éléments. La provenance de chaque objet est donc : | (1) est le point de départ, notre objet grand-parent. Il est dupliqué pour créer (2) et cloné pour obtenir (3). Chacun de ces objets est dupliqué et cloné pour produire les autres éléments. La provenance de chaque objet est donc : | ||
- | (1) l' | + | (1) l' |
- | (2) Copie de (1). Parent de (4) et (5) | + | (2) Copie de (1). Parent de (4) et (5). |
- | (3) Clone de (1). Parent de (6) et (7) | + | (3) Clone de (1). Parent de (6) et (7). |
- | (4) Copie de copie de (1) | + | (4) Copie de copie de (1). |
- | (5) Clone de copie de (1) | + | (5) Clone de copie de (1). |
- | (6) Copie de clone de (1) | + | (6) Copie de clone de (1). |
- | (7) Clone de clone de (1) | + | (7) Clone de clone de (1). |
- | Que se passe-t-il quand nous modifions les attributs de (1) ? Comme précédemment, | + | Que se passe-t-il quand nous modifions les attributs de (1) ? Comme précédemment, |
**The thing to bear in mind is that (6) is an exact duplicate of (3) – even down to its linkage to the grandparent object (1), represented by the gray line on the image. You can see, therefore, that a second clone of an object can be created either by cloning the object a second time, or by duplicating an existing clone. The difference is that duplicating a clone will also duplicate any other attributes associated with it, so if you've rotated the clone or added a blur, those effects will be present on the new clone, even though it's linkage goes back to the grandparent object. | **The thing to bear in mind is that (6) is an exact duplicate of (3) – even down to its linkage to the grandparent object (1), represented by the gray line on the image. You can see, therefore, that a second clone of an object can be created either by cloning the object a second time, or by duplicating an existing clone. The difference is that duplicating a clone will also duplicate any other attributes associated with it, so if you've rotated the clone or added a blur, those effects will be present on the new clone, even though it's linkage goes back to the grandparent object. | ||
Ligne 90: | Ligne 90: | ||
(4) remains the same, because it has no linkage to any of the other objects. (5) rotates because it's a clone of (2). The linkage between (6) and (1) means that it's not affected by the rotation of (3) – although it would be affected if (1) were to be modified. Finally (7) does rotate because, as a clone of a clone, it's made up of the cumulative effects of all the changes made to both (1) and (3).** | (4) remains the same, because it has no linkage to any of the other objects. (5) rotates because it's a clone of (2). The linkage between (6) and (1) means that it's not affected by the rotation of (3) – although it would be affected if (1) were to be modified. Finally (7) does rotate because, as a clone of a clone, it's made up of the cumulative effects of all the changes made to both (1) and (3).** | ||
- | Il faut garder | + | Il faut garder |
- | Maintenant, regardons ce qui arrive si nous modifions (2) et (3). Par exemple, je vais les tourner | + | Maintenant, regardons ce qui arrive si nous modifions (2) et (3). Ici, je les ai tourné |
- | (4) reste identique, parce qu'il n'a pas de lien avec les autres objets. (5) tourne parce que c'est un clone de (2). Le lien entre (6) et (1) entraine | + | (4) reste identique, parce qu'il n'a pas de lien avec les autres objets. (5) tourne parce que c'est un clone de (2). Le lien entre (6) et (1) fait qu'il n'est pas modifié par la rotation de (3) - alors qu' |
**If that's not enough to make your head spin, I'll leave it as an exercise for the reader to consider chains of four or more objects! | **If that's not enough to make your head spin, I'll leave it as an exercise for the reader to consider chains of four or more objects! | ||
Ligne 102: | Ligne 102: | ||
The left hand image is the parent in this case. The top right image is the result of cloning the parent, then scaling the clone before applying a clipping path. The bottom right image is the result of cloning the clipped clone and applying a second clipping path to that. The same effect could also have been achieved by clipping a second clone of the parent, but I also wanted to demonstrate that a clone of a clipped or masked object still retains the clipped appearance – note the curved sides of the bottom right image that result from the elliptical clipping path used on the top image.** | The left hand image is the parent in this case. The top right image is the result of cloning the parent, then scaling the clone before applying a clipping path. The bottom right image is the result of cloning the clipped clone and applying a second clipping path to that. The same effect could also have been achieved by clipping a second clone of the parent, but I also wanted to demonstrate that a clone of a clipped or masked object still retains the clipped appearance – note the curved sides of the bottom right image that result from the elliptical clipping path used on the top image.** | ||
- | Si ça ne suffit pas à vous donner le tournis, je vous laisserai faire l' | + | Si ça ne suffit pas à vous donner le tournis, je vous laisserai faire l' |
- | Une bonne raison d' | + | Une bonne raison d' |
- | Ici, l' | + | |
+ | Ici, l' | ||
**Although clones can result in substantial space savings, chaining them too deeply can slow Inkscape' | **Although clones can result in substantial space savings, chaining them too deeply can slow Inkscape' | ||
Ligne 111: | Ligne 112: | ||
Remember, either clone from the original parent each time (Alt-D), or clone once then duplicate the clone (Ctrl-D). If you're not sure whether you're cloning the original object or an existing clone of it, check the status bar. If it reads “Clone of Clone of Clone...” then you might want to re-think your approach.** | Remember, either clone from the original parent each time (Alt-D), or clone once then duplicate the clone (Ctrl-D). If you're not sure whether you're cloning the original object or an existing clone of it, check the status bar. If it reads “Clone of Clone of Clone...” then you might want to re-think your approach.** | ||
- | Bien que les clones permettent des gains d' | + | Bien que les clones permettent des gains considérables |
- | Souvenez-vous que soit vous clonez chaque fois à partir du parent original (Alt-D), soit vous clonez | + | Souvenez-vous que soit vous clonez chaque fois à partir du parent original (Alt-D), soit vous clonez |
issue88/inkscape.1421687640.txt.gz · Dernière modification : 2015/01/19 18:14 de d52fr