It appears you have not registered with our community. To register please click here ...

Share this topic on AskShare this topic on Del.icio.usShare this topic on DiggShare this topic on FacebookShare this topic on GoogleShare this topic on MagnoliaShare this topic on MySpaceShare this topic on RedditShare this topic on SlashdotShare this topic on SquidooShare this topic on StumbleUponShare this topic on TechnoratiShare this topic on TwitterShare this topic on YahooShare this topic on Google buzz

Author Topic: GIMP Scripting 101  (Read 7522 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline fencepost

  • Cheif Editor
  • ********
  • Posts: 2,651
  • Karma: 0
    • fence-post.deviantart.com
Re: GIMP Scripting 101
« Reply #10 on: August 04, 2008, 05:07:12 PM »
Thanks for the feedback, Skeletor!  Glad you tried out the tutorial.  I see what you mean by substituting a value in to replace the variable....I thought about that when writing the tutorial, but decided against it for a couple of reasons....

1) It would make the tutorial even longer.  There are several cases where there are multiple values that could be substituted and those variables would have to be described.  That would get really wordy.  For example, the create layer procedure has to have something to tell GIMP what the Blend mode is.  There are 20+ different blend mode choices.  Lots of text there....

2) If you substitute in a value rather than the actual "action" that's being done (ie using a 0 to represent FOREGROUND-FILL, rather than just leaving it as FOREGROUND-FILL), if you ever have to go back and troubleshoot the script, you don't know what the 0 represents (unless, of course, you've scripted so much you can recall what each procedure requires).  So, you would have to open up the Procedure Browser and see what parameter is required there.  However, if you leave it set to FOREGROUND-FILL, you'll know right away what the parameter needs to be.  In some cases, GIMP won't let you use the written out action and requires a value. So, in that case, you're correct.

So, at risk of going overboard, I just left it be.  But, I fully understand what you mean and, in some ways, I agree with you.  If you want to see me go overboard in a tutorial, check out the remaining scripting tutorials.  Those are graphic novels that probably noone will ever wade through completely!  ;D
I'd rate you as an upper-middle-lower-mod with pro-novice-inter tendencies.....and a twist of lime!  Of course, my rating scale is completely objectively subjective, but ALWAYS consistently inconsistent.

Offline HippieKender

  • Moderator
  • ********
  • Posts: 1,066
  • Karma: 0
  • I seem to lick circular things...
    • hippiekender.deviantart.com
    • hippiekender: PhotoBucket
    • @HippieKender:twitter
    • HippieKender.com
Re: GIMP Scripting 101
« Reply #11 on: August 06, 2008, 07:06:29 PM »
Yay, I just finished this one, and it was as painless as you promised!  I'm off to try 102a :D  Thanks so much for posting this, Art.

You are not allowed to view links. Register or Login
GimpDome dA Group
||  You are not allowed to view links. Register or Login
GimpDome's CafePress
|| You are not allowed to view links. Register or Login
@GimpDome
on Twitter
The most precious thing one can make is a friend.

Offline fencepost

  • Cheif Editor
  • ********
  • Posts: 2,651
  • Karma: 0
    • fence-post.deviantart.com
Re: GIMP Scripting 101
« Reply #12 on: December 26, 2008, 07:39:37 AM »
Thanks for giving it a try and glad you found it straightforward!

Posted on: August 06, 2008, 10:30:30 PM
Tutorial updated to work with GIMP 2.6.  Enjoy!

Art
I'd rate you as an upper-middle-lower-mod with pro-novice-inter tendencies.....and a twist of lime!  Of course, my rating scale is completely objectively subjective, but ALWAYS consistently inconsistent.