Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Scripting GEGL operations
#6
I had a look in my PClinuxOS desktop, which is a bit different to this kubuntu notebook. Still the same although different folders (usr/lib vs. usr/lib64) libgimp-2.0.so.0 is the name and is a symbolic link to the current version file)

Got your scripts working here, kubuntu 18.04 / gimp 2.10.14

The python plugin - line 1 and line 11

Code:
#!/usr/bin/env python2
from gimpfu import *
from ctypes import *
from sys import argv, platform
import sys
# sys.stderr = open('C:/temp/python-fu-output.txt','a')
# sys.stdout=sys.stderr # So that they both go to the same file

def load_library (library_name):
    if platform == "linux" or platform == "linux2":
        library_name = library_name + '.so.0'
    elif platform == "win32":

and the script - just the upper case 
Code:
   SF-OPTION       "Superpixels Color" '("average" "random")

I will attach the files I used, just in case.
More linux testers needed.

As a test I called gegl up in the BIMP dialog, get both and seems to work: https://i.imgur.com/SDYf9Tf.jpg It might bring new life back to BIMP.


Attached Files
.zip   gegl_ops_tested.py.zip (Size: 3.29 KB / Downloads: 325)
Reply


Messages In This Thread
Scripting GEGL operations - by Kevin - 06-01-2020, 10:55 AM
RE: Scripting GEGL operations - by rich2005 - 06-01-2020, 12:25 PM
RE: Scripting GEGL operations - by Kevin - 06-01-2020, 12:35 PM
RE: Scripting GEGL operations - by rich2005 - 06-01-2020, 12:42 PM
RE: Scripting GEGL operations - by Kevin - 06-01-2020, 12:45 PM
RE: Scripting GEGL operations - by rich2005 - 06-01-2020, 02:30 PM
RE: Scripting GEGL operations - by Kevin - 06-03-2020, 10:24 AM
RE: Scripting GEGL operations - by Ofnuts - 06-03-2020, 11:01 PM
RE: Scripting GEGL operations - by Kevin - 06-03-2020, 01:40 PM
RE: Scripting GEGL operations - by Kevin - 06-03-2020, 03:12 PM
RE: Scripting GEGL operations - by rich2005 - 06-03-2020, 05:25 PM
RE: Scripting GEGL operations - by Kevin - 09-01-2020, 01:07 PM
RE: Scripting GEGL operations - by rich2005 - 10-05-2020, 05:00 PM

Forum Jump: