3
我目前正在使用Python编写Inkscape插件。在此插件中,我想从插件文件夹加载模板(现有的svg),并通过名称或密钥访问此模板中的某些对象。然后我想更改对象的边框和/或填充颜色,并向其中添加一些文本。我如何使用inkscape的python脚本接口来做到这一点?我发现了几个关于如何为inkscape编写插件的示例(请参见下文),但它们都适用于现有的已打开文档。在Inkscape插件中加载和修改svg
- http://www.hoboes.com/Mimsy/hacks/write-inkscape-extension-create-multiple-duplicates/
- http://wiki.inkscape.org/wiki/index.php/Script_extensions
- http://ospublish.constantvzw.org/blog/tools/inkscape-plugins-in-python
- http://wiki.inkscape.org/wiki/index.php/Generating_objects_from_extensions
- http://wiki.inkscape.org/wiki/index.php/PythonEffectTutorial