Script masque opaque - Opaque mask script

frPour simplifier la méthode de mise en texture expliquée precedement, j’ai fait un petit script en python inspiré en grande partie du travail d’ACSpike. Il faut le désarchiver et placer les fichier opaquemask.py et opaquemask.inx dans le répertoire extentions d’Inkscape :
L’archive au format tar.bz2, au format au format tar.lzma et au format 7-zip

Pour l’executer : Menu=>Effets=>Rendu=>Opaque mask

Suite au commentaire de Parsimony, il faut que les fichiers soit dans le repertoire application. Pour le connaitre, il suffit de taper :
inkscape –extension-directory

Sous unix, en root dans le répertoire désarchivé, taper :
cp opaquemask.py opaquemask.inx `inkscape –extension-directory`

Une version 0.2 est disponible depuis le 26 septembre

en To simplify the texturing of object using masking as wrote previously, I done a little (my first) python script, inspired by ACSpike included python scripts. Put the two files opaquemask.py and opaquemask.inx in the Inkscape extension directory.
The tar.bz2 format, tar.lzma format and 7-zip format archive.

To launch it, select the masked object then do Menu=>Effects=>Render=>Opaque mask

After the Parsimony comment, I’ve to add that the file must be in inkscape application extention directory, not user inkscape directory.

You can know it by typing :
inkscape –extension-directory

On Un*X, in root account, you can type from directory :
cp opaquemask.py opaquemask.inx `inkscape –extension-directory`

A v0.2 is released the september 26

This entry was posted on Thursday, September 14th, 2006 at 1:26 and is filed under Didacticiel, Inkscape, Tutorial, extention / extension / 扩展. Find similar posts by selecting any of the following tags: . You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

1 Comment so far

  1. Super tu vas pouvoir nous préparer pleins de scripts :p Merci !
    3 commentaires :
    - Dans mon cas il a fallu créer le répertoire extensions
    - j’ai rencontré le problème suivant :
    Traceback (most recent call last):
    File “/home/monchemin/.inkscape/extensions/opaquemask.py”, line 20, in ?
    import inkex, simplepath, simplestyle, copy
    ImportError: No module named inkex
    (apparement il me manque un module)
    - Il faut savoir que plus le masque se rapproche du blanc plus l’opacité est élevée, ça peut être pratique pour certaines utilisations (blanc = 100% d’opacité)

  2. Merci Parsimony pour ces éléments, j’ai donc donné des précisions quant a l’installation et donné des indices dans le didacticiel précédent sur l’opacité. En y reflechissant c’est l’équivalent du masque de calque dans The Gimp.

Have your say

This is a captcha-picture. It is used to prevent mass-access by robots. (see: www.captcha.net)

You must read and type the 5 chars within 0..9 and A..F, and submit the form.

  

Oh no, I cannot read this. Please, generate a

Fields in bold are required. Email addresses are never published or distributed.

Some HTML code is allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
URIs must be fully qualified (eg: http://www.domainname.com) and all tags must be properly closed.

Line breaks and paragraphs are automatically converted.

Please keep comments relevant. Off-topic, offensive or inappropriate comments may be edited or removed.