Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ofn-extract-objects usage
#6
(01-18-2021, 10:45 AM)rich2005 Wrote: To me that does imply that python is working to a degree (ie. Gimp will say "Ignoring duplicate plugin")

Debian 10 buster (stable) comes with Gimp 2.10.8 and gimp-python packages.  What comes with Debian testing or unstable, not sure.
 
@TheWaveWarden - more information please on what you are using.  Debian / Gimp versions / Using a Chromebook linux installation etc ?

Also, you can edit the pluginrc file in your Gimp profile and search for ofn-extract-object, you should see something like:

Code:
(plug-in-def "/path/to/installed/ofn-extract-objects.py" 1600028527
    (proc-def "python-fu-ofn-extract-objects-files" 1
         "Extract objects to files"
         "Extract objects to files\n/path/to/installed/ofn-extract-objects.py"
         "Ofnuts"
         "Ofnuts"
         "2017"
         "Extract objects to files..."
         1
        (menu-path "<Image>/Layer/Extract objects")
        (icon icon-name -1 "")
         "*"
         7 0
        (proc-arg 0 "run-mode" "The run mode { RUN-INTERACTIVE (0), RUN-NONINTERACTIVE (1) }")
        (proc-arg 13 "image" "Input image")
        (proc-arg 16 "layer" "Input layer")
        (proc-arg 0 "resize" "Layer size")
        (proc-arg 3 "threshold" "Alpha threshold")
        (proc-arg 4 "directory" "Directory")
        (proc-arg 4 "namePattern" "File name pattern"))
    (proc-def "python-fu-ofn-extract-objects-layers" 1
         "Extract objects to layers"
         "Extract objects to layers\n/path/to/installed/ofn-extract-objects.py"
         "Ofnuts"
         "Ofnuts"
         "2017"
         "Extract objects to layers..."
         1
        (menu-path "<Image>/Layer/Extract objects")
        (icon icon-name -1 "")
         "*"
         6 0
        (proc-arg 0 "run-mode" "The run mode { RUN-INTERACTIVE (0), RUN-NONINTERACTIVE (1) }")
        (proc-arg 13 "image" "Input image")
        (proc-arg 16 "layer" "Input layer")
        (proc-arg 0 "resize" "Layer size")
        (proc-arg 3 "threshold" "Alpha threshold")
        (proc-arg 4 "namePattern" "Layer name pattern")))

Where of course /path/to/installed/ is something else on your machine. The (menu-path items tells you where the menu entry is (<Image>/Layer is the Layer dropdown in the menu bar of an image window)
Reply


Messages In This Thread
ofn-extract-objects usage - by TheWaveWarden - 01-17-2021, 01:19 PM
RE: ofn-extract-objects usage - by eepjr24 - 01-17-2021, 02:57 PM
RE: ofn-extract-objects usage - by rich2005 - 01-17-2021, 04:42 PM
RE: ofn-extract-objects usage - by Ofnuts - 01-17-2021, 11:15 PM
RE: ofn-extract-objects usage - by rich2005 - 01-18-2021, 10:45 AM
RE: ofn-extract-objects usage - by Ofnuts - 01-18-2021, 03:31 PM

Forum Jump: