![](https://secure.gravatar.com/avatar/bcfd4053c59744b0d94fb0b00ced349c.jpg?s=120&d=mm&r=g)
Hi all,
I'm currently working on an expansion of the L-System Extension (just for fun, getting to know XML and Python). I implemented an extra parameter "Factor", such that the fractal scales with each level. More info about this at the Inkscape Forums: http://www.inkscapeforum.com/viewtopic.php?f=5&t=6411
The thing is, I would like to include some examples in the extension. I thought of a drop-down menu (an "enum" type), with entries like "Koch Snowflake" and "Pythagoras Tree".
|<param name="Examples" type="enum" _gui-text="Examples:"> <item value="Koch_Snowflake">Koch Snowflake</item> <item value="Pythagoras_Tree">Pythagoras Tree</item> </param>|
When the user clicks on such an entry, appropriate values should be assigned to the fields (e.g. Axiom="F", Rules="F=F+F+F", Factor="0.5", etc.). I wondered whether this is possible using XML, or the Relax NG schema language?
So to be clear, the GUI-part isn't a problem. The UI looks like this at the moment: http://www.redpanda.nl/ExamplesInkscape.png However, the "auto-assign" function needs to be implemented yet.
Thanks, Pieter