It is currently Mon Jul 01, 2024 4:03 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Help with the option param TOGGLE (Solved)
PostPosted: Wed May 13, 2020 11:47 am  (#1) 
Offline
GimpChat Member

Joined: Jul 28, 2018
Posts: 1196
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!

_________________
https://www.deviantart.com/pocholo17
Image


Last edited by Pocholo on Thu May 14, 2020 7:56 am, edited 2 times in total.

Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: Help with the option param TOGGLE
PostPosted: Wed May 13, 2020 12:03 pm  (#2) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
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)

_________________
"Where am I ?"


Top
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) Staining option, How To Add - Color Pick

4

No new posts Attachment(s) Problem with manual selection option.

1

No new posts Attachment(s) Wrap effect plugin with color option

13

No new posts Attachment(s) Neon Sign on wall plugin with animation option update #1

22

No new posts Attachment(s) i struggle with the option to copy the path - the path where a file i

3



* Login  



Powered by phpBB3 © phpBB Group