Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Downloading Plug-In
#1
New to gimp. Im trying to download a plug-in to measure a path but I'm running into a problem where when a go to select the file after going to Edit > Preferences > Folders > Plug-ins and then selecting my folder and entering my file manager, I am unable to select the .py file that I need. 

My version of gimp is 2.10.38 and my computer is macOS.

Would love some help with this.
Reply
#2
(12-22-2024, 03:24 PM)slimeball1297 Wrote: New to gimp. Im trying to download a plug-in to measure a path but I'm running into a problem where when a go to select the file after going to Edit > Preferences > Folders > Plug-ins and then selecting my folder and entering my file manager, I am unable to select the .py file that I need. 

My version of gimp is 2.10.38 and my computer is macOS.

Would love some help with this.

As the Folders > Plugins implies, this part of the UI is meant to manage folders, not individual Python files. These are folders that Gimp checks on startup to see if they contains plug-in executables, and a folder can contain several unrelated plugins. So, in practice, the tab should already list two folders, and you just put the Python file in any of these two folders (preferably the one in your user files). Since you are on OSX, make sure the .py has the executable flag.
Reply
#3
(12-22-2024, 05:54 PM)Ofnuts Wrote:
(12-22-2024, 03:24 PM)slimeball1297 Wrote: New to gimp. Im trying to download a plug-in to measure a path but I'm running into a problem where when a go to select the file after going to Edit > Preferences > Folders > Plug-ins and then selecting my folder and entering my file manager, I am unable to select the .py file that I need. 

My version of gimp is 2.10.38 and my computer is macOS.

Would love some help with this.

As the Folders > Plugins implies, this part of the UI is meant to manage folders, not individual Python files. These are folders that Gimp checks on startup to see if they contains plug-in executables, and a folder can contain several unrelated plugins. So, in practice, the tab should already list two folders, and you just put the Python file in any of these two folders (preferably the one in your user files). Since you are on OSX, make sure the .py has the executable flag.
I was able to find the one of the folders (unfortunately not the user files like you recommend) and copied the plug-in I downloaded into it. I then quit gimp and reopened it but my plug-in was not there. This leads me to think my .py file isn't executable and for that reason I ask what is an executable flag and how do I make my plug-in executable.
Reply
#4
(12-23-2024, 12:07 AM)slimeball1297 Wrote:
(12-22-2024, 05:54 PM)Ofnuts Wrote:
(12-22-2024, 03:24 PM)slimeball1297 Wrote: New to gimp. Im trying to download a plug-in to measure a path but I'm running into a problem where when a go to select the file after going to Edit > Preferences > Folders > Plug-ins and then selecting my folder and entering my file manager, I am unable to select the .py file that I need. 

My version of gimp is 2.10.38 and my computer is macOS.

Would love some help with this.

As the Folders > Plugins implies, this part of the UI is meant to manage folders, not individual Python files. These are folders that Gimp checks on startup to see if they contains plug-in executables, and a folder can contain several unrelated plugins. So, in practice, the tab should already list two folders, and you just put the Python file in any of these two folders (preferably the one in your user files). Since you are on OSX, make sure the .py has the executable flag.
I was able to find the one of the folders (unfortunately not the user files like you recommend) and copied the plug-in I downloaded into it. I then quit gimp and reopened it but my plug-in was not there. This leads me to think my .py file isn't executable and for that reason I ask what is an executable flag and how do I make my plug-in executable.

On Unix systems (OSX is an Unix system), files have access flags (read, write, and execute). To be executed a file has to be marked executable (done with chmod +x /path/to/file if your file explorer can not set this flag on files).

Also, if you are on a Unix systems, "dotted files" (files with a name  that starts with a dot) are "not shown" by default (some say "hidden" ...). One of the directories you see (and the one you should use) is probably under a .config so you should tell your explorer to show you hidden files.
Reply
#5
Ive been using AI to help me with this problem for the last 2 hours and I checked if it was executable using my terminal and it said it was. I have also placed my .py file into plugins folder in my user files (I found it), however no dice. I really feel like I've thrown the book at this but I'm not good with computers so maybe there something obvious I'm missing.
Reply
#6
(12-23-2024, 03:48 PM)slimeball1297 Wrote: Ive been using AI to help me with this problem for the last 2 hours and I checked if it was executable using my terminal and it said it was. I have also placed my .py file into plugins folder in my user files (I found it), however no dice. I really feel like I've thrown the book at this but I'm not good with computers so maybe there something obvious I'm missing.

  1. Which plugin exactly (could be one of mine)
  2. Are you looking for the filter in the right place (if it's one of mine, it is likely not in Filters)
  3. Have you got a Python runtime in your Gimp (should have Filters > Python-fu > Console (and **not** Filters > Script-fu > Console which you should also have but is a different thing)
Reply
#7
(12-23-2024, 03:48 PM)slimeball1297 Wrote: Ive been using AI to help me with this problem for the last 2 hours and I checked if it was executable using my terminal and it said it was. I have also placed my .py file into plugins folder in my user files (I found it), however no dice. I really feel like I've thrown the book at this but I'm not good with computers so maybe there something obvious I'm missing.

  1. Which plugin exactly (could be one of mine)
  2. Are you looking for the filter in the right place (if it's one of mine, it is likely not in Filters)
  3. Have you got a Python runtime in your Gimp (should have Filters > Python-fu > Console (and **not** Filters > Script-fu > Console which you should also have but is a different thing)
Reply
#8
ofn-path-arrows (one of yours).
I don't know what you mean by looking for filters in the right place.
I have Filters > Python-fu > Console.
Reply
#9
(12-23-2024, 04:15 PM)slimeball1297 Wrote: ofn-path-arrows (one of yours).
I don't know what you mean by looking for filters in the right place.
I have Filters > Python-fu > Console.

ofn-path-arrows doesn't measure paths, but well. as most of my path tools, it doesn't show up in Filters but in the right-click menu of the Paths list. You can also check that it appears in the Plug-in browser and the Procedure browser, both in the Help menu:

   
   

The plug-in browser, in particular, tells you than you can call the script from the <Vectors> eny (this is the right-click oin the paths list, in a Decorate submenu.
Reply
#10
I downloaded the wrong plug-in. I downloaded ofn-path-edits and am now able to measure paths. Thank you so much for your help.
Reply


Forum Jump: