It is currently Fri Jul 19, 2024 4:25 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Need help with enum syntax [SOLVED by Saulgoode]
PostPosted: Fri Aug 03, 2012 10:45 pm  (#1) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
GIMP Version: 2.6.11
Operating System: Windows
OS Version: XP - SP3
GIMP Experience: Beginner Level



My ENUM won't function properly :bawl

This is what I entered in my menu functions SF-ENUM "LayerMode" '("LayerModeEffects" "HARDLIGHT_MODE")

But when I bring up the menu it displays GIMP_NORMAL_MODE not GIMP_HARDLIGHT_MODE

Woe is me I've seached everywhere but to no avail

_________________
Image
No matter how much you push the envelope, it'll still be stationery.


Last edited by Graechan on Sat Aug 04, 2012 2:01 am, edited 1 time 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: Need help with enum syntax
PostPosted: Fri Aug 03, 2012 11:15 pm  (#2) 
Offline
Script Coder
User avatar

Joined: Apr 23, 2010
Posts: 1553
Location: not from Guildford after all
It would appear to be a bug.

Personally, I prefer the approach described in this post, since it offers greater flexibility, i18n support, and "natural language" prompts.

_________________
Any sufficiently primitive technology is indistinguishable from a rock.


Top
 Post subject: Re: Need help with enum syntax
PostPosted: Sat Aug 04, 2012 1:59 am  (#3) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
Great Saulgoode thankyou for the link

My script now has SF-ENUM "LayerMode" '("LayerModeEffects" "hardlight-mode")and works terrific

and also thanks Kevin for getting it working so well :yes

The bug seems to be with Gimp documentation it says to drop the GIMP from GIMP_HARDLIGHT_MODE but does not say to change HARDLIGHT_MODE to hardlight-mode, but such is life.

_________________
Image
No matter how much you push the envelope, it'll still be stationery.


Top
 Post subject: Re: Need help with enum syntax
PostPosted: Sat Aug 04, 2012 2:29 am  (#4) 
Offline
Script Coder
User avatar

Joined: Apr 23, 2010
Posts: 1553
Location: not from Guildford after all
Graechan wrote:
The bug seems to be with Gimp documentation it says to drop the GIMP from GIMP_HARDLIGHT_MODE but does not say to change HARDLIGHT_MODE to hardlight-mode, but such is life.

That is rather intriguing. I know in the past I've tried "HARDLIGHT-MODE" -- since that is the name of the Script-fu variable -- but I never thought to try the lowercase version. I guess I should've read Kevin's response more diligently.

_________________
Any sufficiently primitive technology is indistinguishable from a rock.


Top
 Post subject: Re: Need help with enum syntax [SOLVED by Saulgoode]
PostPosted: Sat Aug 04, 2012 2:57 am  (#5) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
A bit like myself I tried everything but did not think anything was wrong with the way I entered the default layer-mode, but it was something interesting to learn

_________________
Image
No matter how much you push the envelope, it'll still be stationery.


Top
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Get use to using GEGL Graph syntax.I can't make a filter of everything

13

No new posts Attachment(s) Saulgoode...

15

No new posts PhotoComix and SaulGoode

13



* Login  



Powered by phpBB3 © phpBB Group