It is currently Thu Jul 04, 2024 4:53 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 13 posts ] 
Author Message
 Post subject: Python plug-in problems
PostPosted: Tue Dec 17, 2013 1:25 pm  (#1) 
Offline
GimpChat Member
User avatar

Joined: Dec 10, 2013
Posts: 1004
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

_________________
Image
Macbook Air - MacOS Sierra 10.12
McGimp 2.8.14
G'mic 1.6.5


Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: Python plug-in problems
PostPosted: Tue Dec 17, 2013 8:01 pm  (#2) 
Offline
GimpChat Founder
User avatar

Joined: May 22, 2008
Posts: 5242
Location: Gimpville
Split and moved to Gimp Help Forum.

_________________
“If you reach for the stars, you just might land on a decently sized hill.” - Stuart Hill


Top
 Post subject: Re: Python plug-in problems
PostPosted: Tue Dec 17, 2013 8:32 pm  (#3) 
Offline
Global Moderator
User avatar

Joined: Nov 16, 2011
Posts: 5128
Location: Metro Vancouver, BC
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.

_________________
Image
Gimp 2.8.18, Linux, median user
Gimp Chat Tutorials Index
Spirit Bear (Kermode)


Top
 Post subject: Re: Python plug-in problems
PostPosted: Tue Dec 17, 2013 9:35 pm  (#4) 
Offline
GimpChat Member
User avatar

Joined: Dec 10, 2013
Posts: 1004
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?

_________________
Image
Macbook Air - MacOS Sierra 10.12
McGimp 2.8.14
G'mic 1.6.5


Top
 Post subject: Re: Python plug-in problems
PostPosted: Tue Dec 17, 2013 9:40 pm  (#5) 
Hi Dalia,
The python-fu version of Layer Effects appears under the Layers menu or by right clicking a layer in the Layers dialog.


Top
 Post subject: Re: Python plug-in problems
PostPosted: Wed Dec 18, 2013 2:32 am  (#6) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4756
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).

_________________
Image


Top
 Post subject: Re: Python plug-in problems
PostPosted: Wed Dec 18, 2013 3:59 am  (#7) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
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"

_________________
My 3D Gallery on Deviantart http://photocomix2.deviantart.com/
Main gallery http://www.flickriver.com/photos/photocomix-mandala/
Mandala and simmetry http://www.flickriver.com/photos/photocomix_mandala/

Image

Mrs Wilbress


Top
 Post subject: Re: Python plug-in problems
PostPosted: Wed Dec 18, 2013 6:52 am  (#8) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4756
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....

_________________
Image


Top
 Post subject: Re: Python plug-in problems
PostPosted: Wed Dec 18, 2013 7:41 am  (#9) 
Offline
GimpChat Member
User avatar

Joined: Dec 10, 2013
Posts: 1004
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.

_________________
Image
Macbook Air - MacOS Sierra 10.12
McGimp 2.8.14
G'mic 1.6.5


Top
 Post subject: Re: Python plug-in problems
PostPosted: Wed Dec 18, 2013 7:51 am  (#10) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
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

_________________
My 3D Gallery on Deviantart http://photocomix2.deviantart.com/
Main gallery http://www.flickriver.com/photos/photocomix-mandala/
Mandala and simmetry http://www.flickriver.com/photos/photocomix_mandala/

Image

Mrs Wilbress


Top
 Post subject: Re: Python plug-in problems
PostPosted: Wed Dec 18, 2013 8:36 am  (#11) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4756
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.

_________________
Image


Top
 Post subject: Re: Python plug-in problems
PostPosted: Wed Dec 18, 2013 8:54 am  (#12) 
Offline
GimpChat Member
User avatar

Joined: Dec 10, 2013
Posts: 1004
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

_________________
Image
Macbook Air - MacOS Sierra 10.12
McGimp 2.8.14
G'mic 1.6.5


Top
 Post subject: Re: Python plug-in problems
PostPosted: Wed Dec 18, 2013 9:37 am  (#13) 
Offline
GimpChat Founder
User avatar

Joined: May 22, 2008
Posts: 5242
Location: Gimpville
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.

_________________
“If you reach for the stars, you just might land on a decently sized hill.” - Stuart Hill


Top
Post new topic Reply to topic  [ 13 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts use in python of plug-in lighting

4

No new posts Attachment(s) GIMP Python-Fu Plug-in template

4

No new posts GIMP 2.10 doesn't install my python plug-ins

1

No new posts Plug-in crashes after OS upgrade: python version mismatch? maybe?

4

No new posts Convert GIMP plugin from Python 2 to Python 3

4



* Login  



Powered by phpBB3 © phpBB Group