Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Calling Filters->Distorts->Waves from scheme
#2
(06-25-2024, 08:03 AM)berni Wrote: I tried to run the waves filter from within a scheme script (for being able to do batch processing). My best guess yet was

Code:
(plug-in-waves RUN-NONINTERACTIVE image drawable amplitude phase wavelength 0 FALSE)

Unfortunately this produces different results from when I use the waves filter interactivly (see images below). Also the parameter ranges differ and some parameters are missing completely. Looks like this is some other filter which is also called waves.

Scheme reads like Sanskrit to me so this is just something that might go a little way to help.

Using Debian ? Is your Gimp 2.10 from their repo (no python) or is it a flatpak ? 

You are correct about GEGL. It does say that "waves" is a compatibility "plugin" The GEGL syntax is here: https://gegl.org/operations/gegl-waves.html and you can try it out on an active image using Filters -> Generic -> GEGL graph. Example:

   

While it is possible to wrap a GEGL command in a script-fu wrapper and probably use it in that batch command. There might be other options.

One is using the batch plugin BIMP, the waves parameters show like this, just the essentials. You might be able to apply to your script-fu command line. 

   

If you are using a flatpak, then there is a BIMP plugin for that, a regular install you might have to compile see: https://github.com/alessandrofrancesconi...lugin-bimp  (I have a 'buntu compile, might work with Debian see: https://www.gimp-forum.net/Thread-BIMP-2-2 )
Reply


Messages In This Thread
RE: Calling Filters->Distorts->Waves from scheme - by rich2005 - 06-25-2024, 09:03 AM

Forum Jump: