GT Portal . Forums . Official Tutorials . Art Galleries . FAQs . Search . New Posts . Contact Us Login  .  Register


Board index » GIMP Art Galleries and Resources » GIMP Plugins, Filters, and Scripts Make Money Online . Free Image Hosting
Featured Tutorial : Learn how to create characters by Griatch
Search for :  


Post new topic Reply to topic   [ 6 posts ]  


Author Message
 Post subject:
PostPosted: Mon May 05, 2008 9:05 pm 
Offline

Joined:
Mon May 05, 2008 8:54 pm

Topics: 1
Posts: 3

Find User's Topics

Hi,

I'm trying to save the layers from an image out to different files.

this page here: http://fforw.megameta.net/code

has a python script that will do this. I put the script in /home/myusername/.gimp-2.4/plug-ins
but it doesnt show up anywhere.

is there any way to make it work, or is there any alternative way of saving individual images?

thanks




Top
 Profile  
 
 Post subject:
PostPosted: Mon May 05, 2008 9:58 pm 
Offline

Joined:
Thu Feb 23, 2006 5:38 am

Topics: 89
Posts: 1267

Find User's Topics
therealtigger,

First, what OS are you using? If it's Windows, have you properly installed all of the applications to run Python scripts in Gimp on your system? Here is a link with information on that:

http://www.gimptalk.com/forum/topic/Python-And-Gimp-2-4-25587-1.html

Once you have everything installed properly according to instructions in the above discussion thread link, and as you said you placed the script in the plug-ins folder, you will see a new menu option under the File Heading in an Image window. That new menu option will say:

Save layers separately

Again, to be clear, in an Image window you will find this under:

File | Save layers separately

Hope this helps some.

:h:



Top
 Profile  
 
 Post subject:
PostPosted: Mon May 05, 2008 10:58 pm 
Offline
User avatar

Joined:
Mon Aug 22, 2005 8:35 pm

Topics: 76
Posts: 3582

Find User's Topics
Quote:
I put the script in /home/myusername/.gimp-2.4/plug-ins
but it doesnt show up anywhere.


If you are using GNU/Linux, make sure to set the file's "Execute" attribute:

chmod +x /home/myusername/.gimp-2.4/plug-ins/scriptname.py


_________________
this is bizarre ... it's crazy ... it's stupid ... how can this ... oh my God! It's brilliant!


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 06, 2008 6:02 pm 
Offline

Joined:
Mon May 05, 2008 8:54 pm

Topics: 1
Posts: 3

Find User's Topics
thanks very much, i had to do the chmod thing. Is there any way to do that without the terminal? it just seems silly to have to do that to run a script :s



Top
 Profile  
 
 Post subject:
PostPosted: Tue May 06, 2008 7:23 pm 
Offline

Joined:
Mon May 05, 2008 8:54 pm

Topics: 1
Posts: 3

Find User's Topics
oh, and if anyone's interested, here's the result: http://www.gnome-look.org/content/show.php/A+little+motivation+wallpaper+clock?content=80396

thanks for the help



Top
 Profile  
 
 Post subject:
PostPosted: Wed May 07, 2008 3:46 am 
Offline

Joined:
Sat Feb 16, 2008 7:08 am

Topics: 0
Posts: 47

Find User's Topics
"it just seems silly to have to do that to run a script :s"
Nautilus provides the ability to change attributes using the rightclick menu->Properties->Permissions

The reason you need to change the permissions yourself, is that files you download off the internet may not be trustworthy, and allowing a script to execute indicates you trust it.

OTOH, if you get a collection of scripts in a .zip or tar.gz, they will probably already be executable

The difference between script-fu scripts and python-fu scripts is mainly that python-fu scripts are semi-standalone. This is why python-fu requires executable attribute, and script-fu's don't -- script-fu's are automatically loaded by the script-fu extension, rather than being run as needed off disk.

Lastly, requiring the executable attribute is a pretty handy way of disabling plugins temporarily -- just remove their permission to execute.

(hope that's enough information :D)



Top
 Profile  
 
Display posts from previous:  Sort by  

Post new topic Reply to topic
 [ 6 posts ] 



Who is online

Users browsing this forum: journey, lylejk and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Related Website
Gimp tutorials database
All rights reserved © GimpTalk 2008
forum software by
phpBB