[coding] plugin filter : how to add a dropdown param ?

Post questions on how to use or achieve an effect in Inkscape.
v1nce_2009

[coding] plugin filter : how to add a dropdown param ?

Postby v1nce_2009 » Wed May 26, 2010 4:06 am

Hi,

In the snow plugin there's a sample on how to add a float parameter.
... "<param name=\"drift\" gui-text=\"" N_("Drift Size") "\" type=\"float\" min=\"0.0\" max=\"20.0\">3.5</param>\n" ...
... float drift = ext->get_param_float("drift"); ...

Looking for a doc/sample about others possible "input" type (textbox, dropdown...)

thank you

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: [coding] plugin filter : how to add a dropdown param ?

Postby brynn » Sat Jun 05, 2010 12:14 am

Gosh vince_2009, I've been hoping someone else might answer this, since I have not the slightest idea. All I can suggest is searching the forums. I know I've seen a similar question asked, not too long ago, but don't remember the answer. Sorry, I wish I could be more help.

~suv
Posts: 2272
Joined: Sun May 10, 2009 2:07 am

Re: [coding] plugin filter : how to add a dropdown param ?

Postby ~suv » Sat Jun 05, 2010 1:25 am

v1nce_2009 wrote:Looking for a doc/sample about others possible "input" type (textbox, dropdown...)

from the source code: src/extension/param/parameter.cpp
  • boolean
  • int
  • float
  • string
  • description
  • enum
  • notebook
  • optiongroup NEW
  • color

INX extension descriptor format - Inkscape Wiki
INX Parameters - Inkscape Wiki: short description of each parameter


Return to “Help with using Inkscape”