It is currently Fri Mar 29, 2024 2:19 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 11 posts ] 
Author Message
 Post subject: Help GURM set up
PostPosted: Tue Nov 16, 2010 8:37 am  (#1) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
I installed before GURM but now i feel helpless
the problem is the py file to modify, i need too see which line (better if with a number) has to be edited and which word in that line

Obviously i already read the readme but didn't help me much ( "modify the line in the third sector"i just can't decide where is the third sector....modify "xxxx" in line 12 will be more clear)

i believe once was a illustrated guide to the set up,anyway i just need to see a the line to modify with the word to change highlighted

For RobA
since the initial setup is a bit a pain, i was thinking to create sort of portable setting

Gurm will accept relative paths?(relative to where is gimp)

_________________
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


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: Help GURM set up
PostPosted: Tue Nov 16, 2010 10:25 am  (#2) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Edit this PC i think. Its at the very top of the Python script. =)
GURMINI = "C:\Dokumente und Einstellungen\<your user>\.gimp-2.6\plug-ins\gurm.ini"

Image

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: Help GURM set up
PostPosted: Tue Nov 16, 2010 12:12 pm  (#3) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
Thank Rod!

_________________
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: Help GURM set up
PostPosted: Tue Nov 16, 2010 12:30 pm  (#4) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
You bet, i finally set it up myself...now i will probably move some scripts that are not default out of my program folder...this is pretty nice. =)

Image

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: Help GURM set up
PostPosted: Tue Nov 16, 2010 4:52 pm  (#5) 
Offline
Script Coder
User avatar

Joined: Jul 14, 2010
Posts: 697
PhotoComix wrote:
For RobA
since the initial setup is a bit a pain, i was thinking to create sort of portable setting

Gurm will accept relative paths?(relative to where is gimp)


Relative paths don't seem to work.

You could delete/comment out line 3 (the GURMIMI = whatever)

then change line 53 to:
         f = open(gimp.directory + os.sep + "plug-ins" + os.sep + "gurm.ini","r")


and line 84 to:
      f = open(gimp.directory + os.sep + "plug-ins" + os.sep + "gurm.ini","w")


which will work as long as it is installed into plugins in your user plugin directory (and not the gimp system directory).

-Rob A>

_________________
Image
Fantasy Cartography and Mapping by RobA


Top
 Post subject: Re: Help GURM set up
PostPosted: Tue Nov 16, 2010 4:56 pm  (#6) 
Offline
Script Coder
User avatar

Joined: Jul 14, 2010
Posts: 697
RobA wrote:
Relative paths don't seem to work.


Thought this will if gurm.ini is in the same folder as the gurm.py file:

         f = open(os.path.dirname(__file__) + os.sep + "gurm.ini","r")


and

      f = open(os.path.dirname(__file__) + os.sep + "gurm.ini","w")


-Rob A>

_________________
Image
Fantasy Cartography and Mapping by RobA


Top
 Post subject: Re: Help GURM set up
PostPosted: Wed Nov 17, 2010 3:46 pm  (#7) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
RobA wrote:
RobA wrote:
Relative paths don't seem to work.


Thought this will if gurm.ini is in the same folder as the gurm.py file:

         f = open(os.path.dirname(__file__) + os.sep + "gurm.ini","r")


and

      f = open(os.path.dirname(__file__) + os.sep + "gurm.ini","w")


-Rob A>


Would those also be lines 53 and 84 Rob?

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: Help GURM set up
PostPosted: Thu Nov 18, 2010 10:47 am  (#8) 
Offline
Script Coder
User avatar

Joined: Jul 14, 2010
Posts: 697
Rod wrote:
Would those also be lines 53 and 84 Rob?


Sorry, yes.

I tested it on both Ubuntu and XP.

-Rob A.

_________________
Image
Fantasy Cartography and Mapping by RobA


Top
 Post subject: Re: Help GURM set up
PostPosted: Thu Nov 18, 2010 5:16 pm  (#9) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Awesome - I just moved a bunch of brushes to my brush/bunch of brush folders here folders ... wow!
Scripts are going to be fun...i actually can't believe how many scm scripts i have...lol.

Thanks for the plug-in Rob, its great.

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: Help GURM set up
PostPosted: Mon Jan 03, 2011 1:38 am  (#10) 
Offline
New Member

Joined: Jan 03, 2011
Posts: 1
The correct "cross-platform" way to join paths together is to use os.path.join :

import os
gurm_ini_path = os.path.join( gimp.directory , "plug-ins" , "gurm.ini" )
gurm_ini_file = open( gurm_ini_path , "w" )


Top
 Post subject: Re: Help GURM set up
PostPosted: Mon Jan 03, 2011 9:05 pm  (#11) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Thanks airtonix, and welcome to Gimp Chat. =)

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
Post new topic Reply to topic  [ 11 posts ] 

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group