How to use .inx fileThis is a featured page


You can find more information at
Inkscape wiki - Scripting howto

The .inx file is like header file and will hold some informations for the extension itself.
This file use the xml notation.
I will use the addnode extension to show the differents options I found.

<_name>Add Nodes</_name>
This is the name of the extension as it will be displayed in the menu.

<id>org.ekips.filter.addnodes</id>
I dont find the precise usage of this line. It don't seems to be necessary for the working of extension ???

<dependency type="executable" location="extensions">addnodes.py</dependency>
<dependency type="executable" location="extensions">inkex.py</dependency>

This is dependency the extension will need to work with. With the Python language also don't seems necessary ???

<param name="max" type="float" min="0.0" max="10000.0" text="Maximum segment length">10.0</param>
Here is a very interresting line. It will allow you to enter some parameter that will be passed to the python application.
This is the small popup window asking for parameter when you launch the extension.
I found the following value :
  • boolean
  • int
  • float
  • string
  • optiongroup - Return result will be the selected option name
  • description - Description text (Help...). See the funcplot.inx for more detail use
  • enum - I dont find usage for this one.
  • notebook - Allow use of tab index. See the funcplot.inx for more detail use

<effects-menu><submenu _name="Modify Path"></effects-menu>
Here is the submenu name where you will find the extension.
If the submenu does not already exist it will be created automatically.

<script>
<command reldir="extensions" interpreter="python">addnodes.py</command>
</script>
This is the name of the extension file that will be called and the programming language use for it.
Here is python.



lineaire
lineaire
Latest page update: made by lineaire , Apr 7 2007, 8:59 AM EDT (about this update About This Update lineaire Edited by lineaire

3 words added

view changes

- complete history)
Keyword tags: inx (edit keyword tags)
More Info: links to this page

Anonymous  (Get credit for your thread)


There are no threads for this page.  Be the first to start a new thread.