It is currently Wed Jul 03, 2024 5:39 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 73 posts ]  Go to page Previous  1, 2, 3, 4  Next
Author Message
 Post subject: Re: My Scripts don't show
PostPosted: Mon Nov 07, 2011 6:38 pm  (#21) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Don't give up Molly.
Try five scripts at a time then refresh.Or even ten.
You can get it down to the faulty ones right quick that way.Done that myself.
Take all scripts out - throw in the first 10 - refresh gimps scripts.If you get an error, take 1 of those 10 out at a time until you get no errors.

OR just add them as you need them. :)

_________________
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: My Scripts don't show
PostPosted: Mon Nov 07, 2011 7:16 pm  (#22) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
Well there are about 300 sitting in a folder called scripts to be sorted and tested. Hey I know what, All you scriptwriters, how about a script to test scripts like a volt meter.

_________________
Image


Top
 Post subject: Re: My Scripts don't show
PostPosted: Tue Nov 08, 2011 4:48 am  (#23) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
I got all my scripts back into 2.6.11, there are some that are coming up with errors and I think it is due to the fact that a lot of them are the same but with different names. I find they are hard to sort out. I really think it is to do with all the xtn ones. I don't know,but still working on it.
I had to take out Partha's Gimp 2.7.4 because nothing was working on it, and it was conflicting with Gimp 2.6.11.
I wonder if I should put the Partha one on my flash cuz I really like it and the one window option.

_________________
Image


Top
 Post subject: Re: My Scripts don't show
PostPosted: Tue Nov 08, 2011 2:45 pm  (#24) 
Offline
Script Coder
User avatar

Joined: Jun 22, 2010
Posts: 1171
Location: Here and there
molly wrote:
Well there are about 300 sitting in a folder called scripts to be sorted and tested. Hey I know what, All you scriptwriters, how about a script to test scripts like a volt meter.


I have voltmeters, but I'm not sure how they're going to help ;)
Image

Kevin


Top
 Post subject: Re: My Scripts don't show
PostPosted: Tue Nov 08, 2011 3:20 pm  (#25) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
lol. now see if you can make those into a script to test out script dupes.

_________________
Image


Top
 Post subject: Re: My Scripts don't show
PostPosted: Wed Nov 09, 2011 4:35 pm  (#26) 
Offline
Script Coder
User avatar

Joined: Jun 22, 2010
Posts: 1171
Location: Here and there
So I've used this one on the 120V range ;)
Image and written a script to check for duplicate registrations in script files in a single directory. It registers itself in a "contributed" menu. It writes warnings using gimp-message, which means you will get pop-up boxes if you don't have the error console open.

Example warning:
Test For Duplicate Scripts Warning
duplicate: script-fu-kp24_white_balance in
C:\Documents and Settings\Owner\.gimp-2.6\scripts\zzkp24_white_balance.scm
and
C:\Documents and Settings\Owner\.gimp-2.6\scripts\kp24_white_balance.scm

Which is reporting that the script script-fu-kp24_white_balance is in both these files:

C:\Documents and Settings\Owner\.gimp-2.6\scripts\zzkp24_white_balance.scm

C:\Documents and Settings\Owner\.gimp-2.6\scripts\kp24_white_balance.scm


If anyone considers this useful I'll have a go at getting it to automatically search all the user configured script folders instead of prompting the user.

Kevin


Update: I've re-written the script and attached it to this post


Last edited by paynekj on Thu Nov 10, 2011 9:43 am, edited 1 time in total.

Top
 Post subject: Re: My Scripts don't show
PostPosted: Wed Nov 09, 2011 5:59 pm  (#27) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
Hey Kevin, it worked. It came up with <4> I just saved the error console so I can route them out. thank you

BTW, it placed itself up in the bar across the top and it is called "contributed" How do I get rid of that and put it somewhere else?

Are these two considered to be the same?
Test For Duplicate Scripts Warning
duplicate: fp-script-fu-multi-edge-detect in
C:\Users\Molly\.gimp-2.6\scripts\fp-script-fu-multi-edge-detect.scm
and
C:\Users\Molly\.gimp-2.6\scripts\fp-script-fu-edge-detect-all-layers.scm

_________________
Image


Top
 Post subject: Re: My Scripts don't show
PostPosted: Wed Nov 09, 2011 6:09 pm  (#28) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
I changed the very first line to this Molly.
(define selfmenuroot "<Image>/Filters/Test for Duplicate scripts") ; Change these to suit yourself

Thanks Kevin! :)

_________________
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: My Scripts don't show
PostPosted: Wed Nov 09, 2011 6:16 pm  (#29) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
So If I delete the scm I already installed and put the one you changed in will that take out that contributed at the top?

_________________
Image


Top
 Post subject: Re: My Scripts don't show
PostPosted: Wed Nov 09, 2011 6:20 pm  (#30) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Just change that first line in the one you installed and refresh scripts. :)
Or if you like...
Attachment:
kp24_test_for_duplicate_scripts.zip [1.35 KiB]
Downloaded 62 times


Remove the other and
Just use this one. ;)

_________________
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: My Scripts don't show
PostPosted: Thu Nov 10, 2011 7:15 am  (#31) 
Offline
Script Coder
User avatar

Joined: Jun 22, 2010
Posts: 1171
Location: Here and there
I've hacked at my script a bit more. Now it gives you the option of checking all the scripts in all the directories you have defined in Edit >> Preferences >> Folders >> Scripts

It is also now checking properly where there is more than one script defined in a .scm file and I've made the progress bar keep you informed of how much is done.

Test For Duplicate Scripts Warning
duplicate: script-fu-kp24_webname in
D:\Profiles\kevin\.gimp-2.6\scripts\mine\kp24_webname.scm
and
D:\Profiles\kevin\.gimp-2.6\scripts\kp24_webname.scm

Test For Duplicate Scripts Warning
Finished. Found 169 register attempts
If this looks OK (and I'd welcome any comments about enhancements/coding style) then I'll upload it to GimpScripts

Kevin

p.s. My version still registers in a "contributed" menu. Edit the first line to put it where you want:
(define selfmenuroot "<Image>/contributed")     ; Change these to suit yourself         

change to
(define selfmenuroot "<Image>/Help")     ; Change these to suit yourself         

to put it in the Help menu for instance
(Personally I wouldn't put it under Filters because it doesn't do anything to an image)


Attachments:
File comment: This is version 1.1
kp24_test_for_duplicate_scripts.zip [1.84 KiB]
Downloaded 56 times
Top
 Post subject: Re: My Scripts don't show
PostPosted: Thu Nov 10, 2011 7:48 am  (#32) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
Wow Kevin, I didn't know you were a script writer.
I just ran your script and included ALL scripts. It took about 15 min. I have a whole page of dupes and then some. I saved the error log to go through. The problem is when I reinstalled Gimp-2.6.11 it installs a lot of scripts. I also have my user/molly/.gimp folder with a lot of the same ones. The Question is: Do I delete the dupes out of the Program(x86) folder OR do I delete them from my user folder? This is going to take a lot of deleting either way.
Other than this, I think your script is excellent and will help a lot.

_________________
Image


Top
 Post subject: Re: My Scripts don't show
PostPosted: Thu Nov 10, 2011 8:09 am  (#33) 
Offline
Script Coder
User avatar

Joined: Jun 22, 2010
Posts: 1171
Location: Here and there
Molly,

15 minutes :shock:

There are 97 scripts that come with Gimp and should be in your Program(x86). The rest should be in your user folder(s). I've attached a list of the Gimp-supplied files for you to compare with, but it would be a good idea if someone else checked how many they have as I'm running 2.6.7 and it's possible there are some I've not got.

Kevin


Attachments:
File comment: I've zipped this as someone thinks it's it not acceptable to attach .txt files WHY?
standard_scripts.zip [747 Bytes]
Downloaded 60 times
Top
 Post subject: Re: My Scripts don't show
PostPosted: Thu Nov 10, 2011 9:46 am  (#34) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
Thank you Kevin, I will start working on them.

_________________
Image


Top
 Post subject: Re: My Scripts don't show
PostPosted: Thu Nov 10, 2011 10:42 am  (#35) 
Offline
GimpChat Member
User avatar

Joined: Apr 08, 2010
Posts: 5420
Location: Northwest Ohio
oops, I forgot how to keep the mac from adding ".txt" to the file when I open it in text edit! Argh.


Top
 Post subject: Re: My Scripts don't show
PostPosted: Thu Nov 10, 2011 10:56 am  (#36) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
Are you referring to the scripts? If so, just delete the .txt after the .scm.

_________________
Image


Top
 Post subject: Re: My Scripts don't show
PostPosted: Thu Nov 10, 2011 12:56 pm  (#37) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Thanks Kevin.This script will be real handy for everyone.
Perhaps a better menu would be help>check for duplicate scripts

Image

zip attached with menu fix
Attachment:
kp24_test_for_duplicate_scripts.zip [1.83 KiB]
Downloaded 66 times

_________________
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: My Scripts don't show
PostPosted: Thu Nov 10, 2011 7:14 pm  (#38) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
I agree with Rod.
Kevin if you could add a place to type in one script to see if it is already in you files somewhere, that would be great.

I do believe that this script could save a lot of time and headaches.
Great job Kevin and thank you.

_________________
Image


Top
 Post subject: Re: My Scripts don't show
PostPosted: Fri Nov 11, 2011 4:04 am  (#39) 
Offline
Script Coder
User avatar

Joined: Jun 22, 2010
Posts: 1171
Location: Here and there
molly wrote:
I agree with Rod.
Kevin if you could add a place to type in one script to see if it is already in you files somewhere, that would be great.


If you are looking to check for a single script, then I recommend the Procedure Browser (Help >> Procedure Browser) as you can search the description as well as the script procedure name.
Image
This way you can check if you already have a suitable script before downloading a new one.

However I can see that it might be useful to be able to check downloaded scripts before installing them into one of your script folders, so I'll have a look at doing that.

And it would help if you could agree on a menu location and I'll make it appear there.

Kevin


Top
 Post subject: Re: My Scripts don't show
PostPosted: Fri Nov 11, 2011 5:07 am  (#40) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
Thanks Kevin. I think in the help menu is a perfect place.

Edit: BTW, Where are these presets. I got a page of these when I ran the script the 3rd time to make sure I got all the dupes.

C:\Program Files (x86)\GIMP-2.6.11\share\gimp\2.0\scripts\iccii-convolution-presets.scm
and
C:\Program Files (x86)\GIMP-2.6.11\share\gimp\2.0\scripts\convolution-presets_1.1.scm
I don't see anything in my scripts by those names.

_________________
Image


Top
Post new topic Reply to topic  [ 73 posts ]  Go to page Previous  1, 2, 3, 4  Next

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Still no show

2

No new posts CAN NOT GET GMIC TO SHOW OR WORK

2

No new posts Can't get my layers to show up in the RGB compose dialog

3

No new posts Attachment(s) GEGL needs filters that show images, here's why.

0

No new posts Attachment(s) New Fake Paintings (Show of results)

40



* Login  



Powered by phpBB3 © phpBB Group