Creating scripts using Perl

View: New views
8 Messages — Rating Filter:   Alert me  

Creating scripts using Perl

by xaviermasr :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,

I am just getting myself into the writing of scripts and, as I use Perl
normally, would like to use it for that purpose.

I'm using GIMP on Linux (Mandriva) and have Perl already installed in my
system.

Thanks to all.


--
Xavier Mas
_______________________________________________
Gimp-user mailing list
Gimp-user@...
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user

Re: Creating scripts using Perl

by Joao S. O. Bueno Calligaris :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Saturday 03 May 2008, Xavier Mas wrote:
> Hi all,
>
> I am just getting myself into the writing of scripts and, as I use
> Perl normally, would like to use it for that purpose.
>
> I'm using GIMP on Linux (Mandriva) and have Perl already installed
> in my system.
>
> Thanks to all.

Hi -
there are Perl bindings to scripting GIMP.

In Mandriva, just type "urpmi gimp-perl" as root , and look
at  /usr/lib/gimp/2.0/plug-ins for the examples that get installed.
(they get mixed with the binary plug-ins already there -
unfortunattelly the files don't use a .pl extension)

        js
        -><-





_______________________________________________
Gimp-user mailing list
Gimp-user@...
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user

Re: Creating scripts using Perl

by xaviermasr :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

El Saturday 03 May 2008 18:42:21 Joao S. O. Bueno va escriure:

> On Saturday 03 May 2008, Xavier Mas wrote:
> > Hi all,
> >
> > I am just getting myself into the writing of scripts and, as I use
> > Perl normally, would like to use it for that purpose.
> >
> > I'm using GIMP on Linux (Mandriva) and have Perl already installed
> > in my system.
> >
> > Thanks to all.
>
> Hi -
> there are Perl bindings to scripting GIMP.
>
> In Mandriva, just type "urpmi gimp-perl" as root , and look
> at  /usr/lib/gimp/2.0/plug-ins for the examples that get installed.
> (they get mixed with the binary plug-ins already there -
> unfortunattelly the files don't use a .pl extension)
>
> js
> -><-
>
>
>
>
>
> _______________________________________________
> Gimp-user mailing list
> Gimp-user@...
> https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user

Thank you js. Is there any tutorial on how to write Perl scripts for GIMP?

Cheers,

--
Xavier Mas
_______________________________________________
Gimp-user mailing list
Gimp-user@...
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user

Re: Creating scripts using Perl^H^H^H^HRuby

by Leon Brooks GIMP :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sun, 4 May 2008, Xavier Mas wrote:
> Thank you js.

Being useful seems to be a long-term habit for
Joao. I don't think that it's just because
he's Brasiliano, either. (-:

Being weird seems to be a habit for me: I'd
like to script GIMP in Ruby instead.

Cheers; Leon

--
http://cyberknights.com.au/   Modern tools; traditional dedication
http://linux.org.au/          PastCommittee Member, Linux Australia
_______________________________________________
Gimp-user mailing list
Gimp-user@...
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user

Re: Creating scripts using Perl^H^H^H^HRuby

by Joao S. O. Bueno Calligaris :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Saturday 03 May 2008, Leon Brooks wrote:
> Being weird seems to be a habit for me: I'd
> like to script GIMP in Ruby instead.
>
> Cheers; Leon

That is also an option!
Just cehck the apropriate package (probably named gimp-ruby) from your
distro - or download it from gnome repositories. :-)

        js
        -><-
_______________________________________________
Gimp-user mailing list
Gimp-user@...
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user

Re: Creating scripts using Perl^H^H^H^HRuby

by Leon Brooks GIMP :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sun, 4 May 2008, Joao S. O. Bueno wrote:

Good morning, South America! (-:

> Just cehck the apropriate package (probably
> named gimp-ruby) from your distro

Mandriva 2008.0 on this laptop, about to be
2008.1 AKA "spring."

Has perl-Gimp & gimp-python but nothing to
do with Ruby on GIMP (but there are plugins
ruby-rbogl, ruby-gtk2, ruby-game, ruby-mysql,
ruby-RMagick about). Will see if 2008.1 has
anything extra.

Cheers; Leon

--
http://cyberknights.com.au/   Modern tools; traditional dedication
http://linux.org.au/          PastCommittee Member, Linux Australia
_______________________________________________
Gimp-user mailing list
Gimp-user@...
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user

Re: Creating scripts using Perl^H^H^H^HRuby

by Joao S. O. Bueno Calligaris :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sunday 04 May 2008, Leon Brooks wrote:

> On Sun, 4 May 2008, Joao S. O. Bueno wrote:
>
> Good morning, South America! (-:
> > Just cehck the apropriate package (probably
> > named gimp-ruby) from your distro
>
> Mandriva 2008.0 on this laptop, about to be
> 2008.1 AKA "spring."
>
> Has perl-Gimp & gimp-python but nothing to
> do with Ruby on GIMP (but there are plugins
> ruby-rbogl, ruby-gtk2, ruby-game, ruby-mysql,
> ruby-RMagick about). Will see if 2008.1 has
> anything extra.
>
> Cheers; Leon

Hi Leon -
most likely you willhave to build the bidings from source.
(I am assuming you have configured a mandriva "contrib"  rpm repositoy
using easy-urpmi as well, and than that there is no gimp-ruby
available there)

Try installing the packages gimp-devel and ruby-devel, downlaod
gimp-ruby source (for example with:
svn co http://svn.gnome.org/svn/gimp-ruby/trunk gimp-ruby

and see if you get it working from there.

Regards,

        js
        -><-
_______________________________________________
Gimp-user mailing list
Gimp-user@...
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user

Re: Creating scripts using Perl^H^H^H^HRuby

by Leon Brooks GIMP :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, 5 May 2008, Joao S. O. Bueno wrote:
> Try installing the packages gimp-devel

Done.

> and ruby-devel,

Already in.

> downlaod
> gimp-ruby source (for example with:
> svn co http://svn.gnome.org/svn/gimp-ruby/trunk gimp-ruby

Err... first urpmi subversion (is on CD3 of
2008.0 install set).

"Checked out revision 81."

Hmmm, says I must have Gimp 2.3 installed, but...

$ rpm -q gimp
gimp-2.4.0-0.rc2.3mdv2008.0

# autogen.sh
(whinge about intltool)
# urpmi intltool
installing intltool-0.36.2-1mdv2008.0.noarch.rpm
# autogen.sh
(much scribble)
# make
(much more scribble)
# make install
(page-full of scribble)
#

> and see if you get it working from there.

Oh, good, I have a new Ruby-fu menu under Xtns,
from which at least "Sphere" seems to work. (-:

Thanks, Joao!

Cheers; Leon

--
http://cyberknights.com.au/   Modern tools; traditional dedication
http://linux.org.au/          PastCommittee Member, Linux Australia
_______________________________________________
Gimp-user mailing list
Gimp-user@...
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user