Switch to full style
Ask all general Gimp related questions here
Post a reply

Python plug-in problems

Tue Dec 17, 2013 1:25 pm

I'm also not having any success with the python plug-ins (not in this tutorial but others). Perhaps this is not the place to post this - moderators feel free to move - here's an example.

Image

Re: Python plug-in problems

Tue Dec 17, 2013 8:01 pm

Split and moved to Gimp Help Forum.

Re: Python plug-in problems

Tue Dec 17, 2013 8:32 pm

Dalia wrote:I'm also not having any success with the python plug-ins (not in this tutorial but others). Perhaps this is not the place to post this - moderators feel free to move - here's an example...
Dalia, what are you trying to do? This screen shot is from the Gimp Python Console. This is where you would write a python script, it's not normally where you would run a python plug-in you've added to Gimp. Have you added a python plug-in to your .gimp-2.8/plug-ins folder? If so it will be listed in one of the Gimp menus. The menu location should be documented at the web site you downloaded the plug-in from or you can also easily find the menu location and if a plug-in or script is successfully installed using,
Help menu | Plug-in Browser.

Re: Python plug-in problems

Tue Dec 17, 2013 9:35 pm

Hi odinbc: The particular plug-in is the LayerFX Python-FU for 2.8 and I installed it into the plug-in folder but it doesn't appear anywhere on the Gimp menu. I installed the LayerFX (Script-FU) into the scripts folder and that shows up in the menu. At the moment it isn't a big deal as I'm just starting with Gimp but I was just wondering why it doesn't show up. I'm on a mac (Maverick) if that might have something to do with it?

Re: Python plug-in problems

Tue Dec 17, 2013 9:40 pm

Hi Dalia,
The python-fu version of Layer Effects appears under the Layers menu or by right clicking a layer in the Layers dialog.

Re: Python plug-in problems

Wed Dec 18, 2013 2:32 am

Dalia wrote:Hi odinbc: The particular plug-in is the LayerFX Python-FU for 2.8 and I installed it into the plug-in folder but it doesn't appear anywhere on the Gimp menu. I installed the LayerFX (Script-FU) into the scripts folder and that shows up in the menu. At the moment it isn't a big deal as I'm just starting with Gimp but I was just wondering why it doesn't show up. I'm on a mac (Maverick) if that might have something to do with it?


If you are on OSX (or Linux) you have to make the .py file(s) 'executable': "chmod +x foobar.py" in the terminal, or using some file properties dialog in a file manager (not sure this property is available in some dialog in OSX).

Re: Python plug-in problems

Wed Dec 18, 2013 3:59 am

you didn't say if you run windows linux or mac, in windows is not needed "make the script" executable , but the problem in Win as in other OS may be find the script in the menu because are so many items in menu and may be well hidden where you not suspect

Of that script are around several versions ,in a few the only difference is the menu location:
in most version is in the Layer menu, but may even be in a Python menu , or under Filters, but may be even misplaced in any other menu

So shortly your best option is open the script with a text editor and see where the script will show up (you don't need to know any code for this location is written in a very clear way and separated from the rest of the code :

you will see something as

# register the plug-in
register(
"python_fu_molten_material",
"Create molten material out of the given image",
"Create molten material out of the given image",
"Andi Clemens (TheGrudge)",
"Andi Clemens (TheGrudge)",
"2007-2009",
"<Image>/Filters/Artistic/_Molten Material...",
"RGB*",

in this example the script called "molten material will show up in Image Window, Filters menu, "Artistic Submenu"

Re: Python plug-in problems

Wed Dec 18, 2013 6:52 am

The op stated she is on Mavericks on the python console in the screenshot says Python has been compiled for OSX.

Python scripts should be edited with care, tabs and spaces are significant....

Re: Python plug-in problems

Wed Dec 18, 2013 7:41 am

I appreciate all of your suggestions but, you know what, you've lost me. So, with that said when I next need to use the plug-in I'll tackle it then. If I do "fix" my particular issue, I'll report back.

Thank you everyone.

Re: Python plug-in problems

Wed Dec 18, 2013 7:51 am

I appreciate all of your suggestions but, you know what, you've lost me.


:mrgreen: Don't worry i will make easy for you :
upload the script as attachment in your next message and i will tell you where is in your menu :bigthup

Re: Python plug-in problems

Wed Dec 18, 2013 8:36 am

PhotoComix wrote:
I appreciate all of your suggestions but, you know what, you've lost me.


:mrgreen: Don't worry i will make easy for you :
upload the script as attachment in your next message and i will tell you where is in your menu :bigthup

You can also use "Help/Plugin browser" to locate the plugin in the menus.

Re: Python plug-in problems

Wed Dec 18, 2013 8:54 am

Don't hold me to anything I relay here, but it now shows up and may be functional (haven't tried it yet). I used the BatChmod app to "remove any access control" issues... Opened Gimp back up, opened a project, right-clicked on a layer and there at the very bottom was "Layer Effects".

:tyspin Everyone

Re: Python plug-in problems

Wed Dec 18, 2013 9:37 am

Yay! :jumpclap

Yes, any new python plug-in you add will have to be given executable permission, the same as in Linux. Script-fu .scm scripts don't require this authority.
Post a reply