It is currently Sat Apr 20, 2024 5:26 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Perl Script Fu tutorial
PostPosted: Fri Oct 24, 2014 7:18 am  (#1) 
Offline
New Member

Joined: Nov 28, 2013
Posts: 3
GIMP Version: 2.8.10
Operating System: Windows
GIMP Experience: Intermediate Level





Hi,
This is my first posting to the forum, so please excuse if i have not done my homework.
I found a good tutorial to learn writing script fu plugins using Scheme, but i would like to write it in perl as im used to perl.

Can you point me to a script fu plugin tutorial for perl plugins ?
Else is there a ready scheme /python script fu plugin i can use ?

My requirement is to write a small script to resize and convert n number of rectangular flag images to small globes.
I have done this using resize canvas to width = height followed by map object operation.
Attachment:
southkorea.png
southkorea.png [ 9.1 KiB | Viewed 2818 times ]


Attachments:
South_Korea.png
South_Korea.png [ 11.97 KiB | Viewed 2820 times ]
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: Perl Script Fu tutorial
PostPosted: Fri Oct 24, 2014 8:47 am  (#2) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4736
The problem with Perl is that there aren't that many people who write Gimp scripts with it, so you will be pretty much on your own (including installing Perl support for Gimp). Scheme/Python are both standard issue those days and have many active scripters.

If you survived Perl you can be up to speed in Python in a matter of hours.

_________________
Image


Top
 Post subject: Re: Perl Script Fu tutorial
PostPosted: Fri Oct 24, 2014 3:02 pm  (#3) 
Offline
Global Moderator
User avatar

Joined: Nov 16, 2011
Posts: 5128
Location: Metro Vancouver, BC
ofnuts is right Scheme and Python are more common for Gimp scripts and plug-ins.
There are a few Perl resources for Gimp.
GIMP - Basic Perl
GIMP - Perl Debugged
GIMP - Developers

Sort of related, Getting Perl to work in Gimp (an older Gimp Chat thread).

_________________
Image
Gimp 2.8.18, Linux, median user
Gimp Chat Tutorials Index
Spirit Bear (Kermode)


Top
 Post subject: Re: Perl Script Fu tutorial
PostPosted: Fri Oct 24, 2014 6:18 pm  (#4) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
Python was not installed in gimp as a default until 2.8.0 so I would love to see Perl scripts introduced.
if you do so you would have to also include a installing Perl for dummies guide, similiar to the guide for installing python for 2.6

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


Top
 Post subject: Re: Perl Script Fu tutorial
PostPosted: Sat Oct 25, 2014 11:11 am  (#5) 
Offline
New Member

Joined: Nov 28, 2013
Posts: 3
hey gimp dudes,
please be kind to perl :D but thanks for the comments

so i dont mind even scheme or python,
i guess i will have to nail this myself using the scheme tutorial on the main gimp site.
thanks all.
keep gimp rocking!

and Odinbc thats a great set of links..will check .


Top
 Post subject: Re: Perl Script Fu tutorial
PostPosted: Sat Oct 25, 2014 12:44 pm  (#6) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4736
ronabraham wrote:
hey gimp dudes,
please be kind to perl :D but thanks for the comments

so i dont mind even scheme or python,
i guess i will have to nail this myself using the scheme tutorial on the main gimp site.
thanks all.
keep gimp rocking!

and Odinbc thats a great set of links..will check .


If you have to learn Scheme or Python, use Python. You'll find plenty of other uses for it (and in Gimp is allows you to do more things).

_________________
Image


Top
 Post subject: Re: Perl Script Fu tutorial
PostPosted: Sat Oct 25, 2014 1:05 pm  (#7) 
Offline
Script Coder
User avatar

Joined: Apr 23, 2010
Posts: 1553
Location: not from Guildford after all
As of late, a developer (username 'mohawk') has been working on updating GIMP's Perl plug-in and I believe his work is expected to be included in GIMP 2.10. If you'd like to assist in his effort, especially with testing on Windows, I am sure your contribution would be welcomed.

For most GIMP scripting tasks, the choice of programming language is not that important. You will basically be making calls to GIMP's Procedural DataBase (PDB) and performing standard programming operations, e.g., assigning variables, testing simple conditions (IF...THEN), and performing basic looping (WHILE, FOR, etc). While the syntax of how you perform these operations may vary, the actual logic and flow of your programming will typically be the same.

Were you to provide a more detailed description of the task you wish to accomplish, I am sure there are many here who would be glad to assist you in creating a suitable script/plug-in.

_________________
Any sufficiently primitive technology is indistinguishable from a rock.


Top
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) Looking for Script Coder to make Script of my VHS effect

2

No new posts Attachment(s) Cannot run test script-fu script via console

7

No new posts Attachment(s) A liitle Start Help with a Script-Fu Script

3



* Login  



Powered by phpBB3 © phpBB Group