It is currently Thu May 23, 2013 5:57 am


Latest GIMP Scripts & Plug-ins

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 11:45 pm  (#1) 
Offline
Gimp Scripts Editor
User avatar

Joined: Feb 18, 2011
Posts: 1559
Location: 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


Last edited by Graechan on Sat Aug 04, 2012 3: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
 Profile  
 

 Post subject: Re: Need help with enum syntax
PostPosted: Sat Aug 04, 2012 12:15 am  (#2) 
Offline
GimpChat Member
User avatar

Joined: Apr 23, 2010
Posts: 819
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
 Profile  
 
 Post subject: Re: Need help with enum syntax
PostPosted: Sat Aug 04, 2012 2:59 am  (#3) 
Offline
Gimp Scripts Editor
User avatar

Joined: Feb 18, 2011
Posts: 1559
Location: 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


Top
 Profile  
 
 Post subject: Re: Need help with enum syntax
PostPosted: Sat Aug 04, 2012 3:29 am  (#4) 
Offline
GimpChat Member
User avatar

Joined: Apr 23, 2010
Posts: 819
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
 Profile  
 
 Post subject: Re: Need help with enum syntax [SOLVED by Saulgoode]
PostPosted: Sat Aug 04, 2012 3:57 am  (#5) 
Offline
Gimp Scripts Editor
User avatar

Joined: Feb 18, 2011
Posts: 1559
Location: 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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

* Login   * Subscribe to RSS Feed


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group