GIMP Chat
http://gimpchat.com/

Python plug-in problems
http://gimpchat.com/viewtopic.php?f=8&t=9313
Page 1 of 1

Author:  Dalia [ Tue Dec 17, 2013 1:25 pm ]
Post subject:  Python plug-in problems

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

Author:  GnuTux [ Tue Dec 17, 2013 8:01 pm ]
Post subject:  Re: Python plug-in problems

Split and moved to Gimp Help Forum.

Author:  Odinbc [ Tue Dec 17, 2013 8:32 pm ]
Post subject:  Re: Python plug-in problems

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.

Author:  Dalia [ Tue Dec 17, 2013 9:35 pm ]
Post subject:  Re: Python plug-in problems

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?

Author:  fluffybunny [ Tue Dec 17, 2013 9:40 pm ]
Post subject:  Re: Python plug-in problems

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

Author:  ofnuts [ Wed Dec 18, 2013 2:32 am ]
Post subject:  Re: Python plug-in problems

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).

Author:  PhotoComix [ Wed Dec 18, 2013 3:59 am ]
Post subject:  Re: Python plug-in problems

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"

Author:  ofnuts [ Wed Dec 18, 2013 6:52 am ]
Post subject:  Re: Python plug-in problems

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....

Author:  Dalia [ Wed Dec 18, 2013 7:41 am ]
Post subject:  Re: Python plug-in problems

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.

Author:  PhotoComix [ Wed Dec 18, 2013 7:51 am ]
Post subject:  Re: Python plug-in problems

Quote:
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

Author:  ofnuts [ Wed Dec 18, 2013 8:36 am ]
Post subject:  Re: Python plug-in problems

PhotoComix wrote:
Quote:
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.

Author:  Dalia [ Wed Dec 18, 2013 8:54 am ]
Post subject:  Re: Python plug-in problems

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

Author:  GnuTux [ Wed Dec 18, 2013 9:37 am ]
Post subject:  Re: Python plug-in problems

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.

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/