RSS/Atom feed Twitter
Site is read-only, email is disabled

gimp _scripts_ in languages other than scheme?

This discussion is connected to the gimp-user-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

5 of 5 messages available
Toggle history

Please log in to manage your subscriptions.

gimp _scripts_ in languages other than scheme? Arian Sanusi 28 Jan 10:02
  gimp _scripts_ in languages other than scheme? Owen 28 Jan 10:55
   gimp _scripts_ in languages other than scheme? Owen 28 Jan 11:00
    gimp _scripts_ in languages other than scheme? Arian Sanusi 29 Jan 10:06
     gimp _scripts_ in languages other than scheme? David Gowers 29 Jan 23:19
Arian Sanusi
2010-01-28 10:02:29 UTC (almost 15 years ago)

gimp _scripts_ in languages other than scheme?

Hi,

Is it possible to have gimp _scripts_ (not plug-ins) in other languages than scheme? Python p.ex.? When I place a python script in ~/.gimp-2.6/scripts the function is not accessible from the scheme interpreter. And I despair on scheme :S

Regards, Arian

Owen
2010-01-28 10:55:10 UTC (almost 15 years ago)

gimp _scripts_ in languages other than scheme?

Hi,

Is it possible to have gimp _scripts_ (not plug-ins) in other languages
than scheme? Python p.ex.? When I place a python script in ~/.gimp-2.6/scripts the function is not accessible from the scheme interpreter. And I despair on scheme :S

I think there may be some semantics with plug-ins and scripts,

My view is that if it is written in a scrioting language, then it is a script.

Just put them in your ~/gimp-2.6/plug-ins directory and make sure they are made executable.

Owen
2010-01-28 11:00:15 UTC (almost 15 years ago)

gimp _scripts_ in languages other than scheme?

Hi,

Is it possible to have gimp _scripts_ (not plug-ins) in other languages
than scheme? Python p.ex.? When I place a python script in ~/.gimp-2.6/scripts the function is not accessible from the scheme interpreter. And I despair on scheme :S

I think there may be some semantics with plug-ins and scripts,

My view is that if it is written in a scrioting language, then it is a script.

Just put them in your ~/gimp-2.6/plug-ins directory and make sure they are made executable.

I apologize, I omitted to state that I am referring to Python scripts.

Just make sure your gimp was compiled with python (should be)

Arian Sanusi
2010-01-29 10:06:50 UTC (almost 15 years ago)

gimp _scripts_ in languages other than scheme?

Owen schrieb:

Hi,

Is it possible to have gimp _scripts_ (not plug-ins) in other languages
than scheme? Python p.ex.? When I place a python script in ~/.gimp-2.6/scripts the function is not accessible from the scheme interpreter. And I despair on scheme :S

I think there may be some semantics with plug-ins and scripts,

My view is that if it is written in a scrioting language, then it is a script.

Just put them in your ~/gimp-2.6/plug-ins directory and make sure they are made executable.

I apologize, I omitted to state that I am referring to Python scripts.

Just make sure your gimp was compiled with python (should be)

yes, it is, and python plug-ins do work, they appear in PDB and the menus. What's not working for me is putting a script in the scripts directory and invoke that functions from cli. Something like

$ gimp -i -b '(python-fu-curve-ext "seagull_copy.jpg")' -b "(gimp-quit 0)"

fails (from the interactive interpreter I get variable undefined) and i couldn't find anything on this on the net. Sorry for the ambiguity.

regards, arian

David Gowers
2010-01-29 23:19:39 UTC (almost 15 years ago)

gimp _scripts_ in languages other than scheme?

On Fri, Jan 29, 2010 at 7:36 PM, Arian Sanusi wrote:

Owen schrieb:

Hi,

Is it possible to have gimp _scripts_ (not plug-ins) in other languages
than scheme? Python p.ex.? When I place a python script in ~/.gimp-2.6/scripts the function is not accessible from the scheme interpreter. And I despair on scheme :S

I think there may be some semantics with plug-ins and scripts,

My view is that if it is written in a scrioting language, then it is a script.

Just put them in your ~/gimp-2.6/plug-ins directory and make sure they are  made executable.

I apologize, I omitted to state that I am referring to Python scripts.

Just make sure your gimp was compiled with python (should be)

yes, it is, and python plug-ins do work, they appear in PDB and the menus. What's not working for me is putting a script in the scripts directory and invoke that functions from cli. Something like

$ gimp -i -b '(python-fu-curve-ext "seagull_copy.jpg")' -b "(gimp-quit 0)"

fails (from the interactive interpreter I get variable undefined) and i couldn't find anything on this on the net.

That's because it's wrong usage. scripts/ dir holds Script-Fu scripts; that is the *only* kind of script it holds. Putting other types of script in there is not intended to work in any meaningful sense, nor does it.

In case it is not already clear, there is no functional difference between a Python script (aka Python plugin) and a Script-fu script. Both can register any number of PDB functions which are then usable from any PDB-enabled interface (eg Script-Fu, Python, Ruby, Lua, Perl,...)

Your python plugins/scripts should all go in the plugins directory.

Anyway, if you are working with Python, consider using the Python console instead of the Script-fu console; it's at Filters->Python-Fu->Console in the menus.

You might also be interested in the 'python-fu-eval' function, which is useful for batch work.
You can specify python-fu-eval as the batch interpreter ("--batch-interpreter python-fu-eval"), and then -b arguments will be treated as Python code to execute rather than Script-Fu code to execute.
I personally think this is much more comfortable way to do batch scripting.