It is currently Sat Sep 26, 2026 3:13 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 11 posts ] 
Author Message
 Post subject: Gimp library of simple script commands?
PostPosted: Thu Jun 19, 2014 6:40 pm  (#1) 
Offline
GimpChat Member

Joined: Feb 23, 2011
Posts: 71
GIMP Version: 2.8.10
Operating System: Windows
GIMP Experience: Intermediate Level



Is there a gimp library where I could find simple single script commands, so I could piece some together, and make a script?

Such as a script command to:
* duplicate a layer.
* change the layer mode.
* rotate a layer.

And other simple commands.

I have tried looking at existing scripts but the lines seem to run together (at least in my head, lol) , and I get confused. :(

_________________
Image


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: Gimp library of simple script commands?
PostPosted: Thu Jun 19, 2014 6:57 pm  (#2) 
Offline
GimpChat Founder
User avatar

Joined: May 22, 2008
Posts: 5241
Location: Gimpville
Greetings!

I would suggest starting with the links in this thread: Script Writing Resources For GIMP. Have a look at the links to Fencepost's Script Writing Tutorials, which are included in that thread.

If you have any questions, just ask and our members will be happy to assist.

_________________
“If you reach for the stars, you just might land on a decently sized hill.” - Stuart Hill


Top
 Post subject: Re: Gimp library of simple script commands?
PostPosted: Thu Jun 19, 2014 7:22 pm  (#3) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4826
Location: Bendigo Vic. Australia
Hi Grits there is always help available here for how to set up commands for any of the plugins or tools gimps scripts can access.
and once you start its quite easy

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


Top
 Post subject: Re: Gimp library of simple script commands?
PostPosted: Thu Jun 19, 2014 10:32 pm  (#4) 
Offline
GimpChat Member

Joined: Feb 23, 2011
Posts: 71
Thanks GnuTux and Graechen. I will check out the resources, and probably be asking some questions here.

_________________
Image


Top
 Post subject: Re: Gimp library of simple script commands?
PostPosted: Fri Jun 20, 2014 7:49 am  (#5) 
Offline
GimpChat Member
User avatar

Joined: Jan 15, 2013
Posts: 133
You should find this out by reading the information already provided, but for a quick look at the commands available, go to...
Help > Procedure Browser
With that information and looking over an existing similar script to what you want to build, you should be able to grasp the basic concept of how everything works.
Good Luck! :)

_________________
Gimp 2.8.16
Arch Linux - XFCE 4.12
Some of my work.


Top
 Post subject: Re: Gimp library of simple script commands?
PostPosted: Fri Jun 20, 2014 10:56 am  (#6) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 16175
I always recommend Monsunamis script lessons. Start here.
www.youtube.com Video from : www.youtube.com
:)


Top
 Post subject: Re: Gimp library of simple script commands?
PostPosted: Fri Jun 20, 2014 1:11 pm  (#7) 
Offline
Script Coder
User avatar

Joined: Apr 23, 2010
Posts: 1553
Location: not from Guildford after all
Grits wrote:
Such as a script command to:
* duplicate a layer.
(define new-layer (car (gimp-layer-copy orig-layer TRUE))) ; should use a 'let' variable rather than 'define'
Grits wrote:
* change the layer mode.
(gimp-layer-set-mode new-layer SCREEN-MODE) ; see PDB Browser for available layer modes
Grits wrote:
* rotate a layer.
(gimp-item-transform-rotate new-layer (* angle (/ *pi* 180)) TRUE 0 0) ; angle should be in degrees

Grits wrote:
And other simple commands.
The PDB Browser is your friend (either "Help->Procedure Browser" or use the "Browse" button in the Script-fu console).

If you can't find what you need in the PDB Browser or don't understand how to use the information, feel free to ask.

_________________
Any sufficiently primitive technology is indistinguishable from a rock.


Top
 Post subject: Re: Gimp library of simple script commands?
PostPosted: Sat Jun 21, 2014 12:36 am  (#8) 
Offline
GimpChat Member

Joined: Feb 23, 2011
Posts: 71
Rod wrote:
I always recommend Monsunamis script lessons. Start here.
www.youtube.com Video from : www.youtube.com
:)



Thanks Rod! I will take a look this weekend.

_________________
Image


Top
 Post subject: Re: Gimp library of simple script commands?
PostPosted: Sat Jun 21, 2014 12:38 am  (#9) 
Offline
GimpChat Member

Joined: Feb 23, 2011
Posts: 71
saulgoode wrote:
Grits wrote:
And other simple commands.
The PDB Browser is your friend (either "Help->Procedure Browser" or use the "Browse" button in the Script-fu console).

If you can't find what you need in the PDB Browser or don't understand how to use the information, feel free to ask.


Thanks! That certainly helped me understand the console better.

_________________
Image


Top
 Post subject: Re: Gimp library of simple script commands?
PostPosted: Sat Jun 21, 2014 4:14 am  (#10) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4812
Grits wrote:
Rod wrote:
I always recommend Monsunamis script lessons. Start here.
www.youtube.com Video from : www.youtube.com
:)



Thanks Rod! I will take a look this weekend.


If you have to learn either Scheme or Python, go for Python:
- In Gimp, Python can do a lot more things
- Python has plenty of uses outside of Gimp
- Python is generally considered easier to learn

The only merit of Scheme is that it used to be the only standard script language for Gimp, but since 2.8 Python is standard, too.

_________________
Image


Top
 Post subject: Re: Gimp library of simple script commands?
PostPosted: Sun Jul 06, 2014 8:56 pm  (#11) 
Offline
GimpChat Member

Joined: Feb 23, 2011
Posts: 71
Thanks a lot, ofnuts. I think scheme is over my head. Maybe python will be easier for me.

_________________
Image


Top
Post new topic Reply to topic  [ 11 posts ] 

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group