GIMP Chat
http://gimpchat.com/

Help with the option param TOGGLE (Solved)
http://gimpchat.com/viewtopic.php?f=9&t=18330
Page 1 of 1

Author:  Pocholo [ Wed May 13, 2020 11:47 am ]
Post subject:  Help with the option param TOGGLE (Solved)

OK guy, here I am bugging you one more time :hehe
Help me understand the TOGGLE param. I'm creating a Planet plugin and I want to make and user choice in the plugin dialog box for a "Lens Flare" to use it or not. How to I write this last part?

I already know how to write the param and have made it appear on the dialog box (PF_BOOL, "sunLayer", "Sun Flare", TRUE), but is not making any change. Thank you in advanced!

Author:  dinasset [ Wed May 13, 2020 12:03 pm ]
Post subject:  Re: Help with the option param TOGGLE

In almost all my filters, the registration has a user parameter to flatten or not the image:
(PF_TOGGLE, "flatten", "Flatten Image?", False),

The filter definition has something like
def AcryLook(....... doFlatten) :

In the filter process normally at end there is a statement which says something like:
if (doFlatten == True): final = pdb.gimp_image_flatten(newImage)

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/