Ask all general Gimp related questions here
Mon Nov 07, 2011 6:38 pm
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.
Mon Nov 07, 2011 7:16 pm
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.
Tue Nov 08, 2011 4:48 am
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.
Tue Nov 08, 2011 2:45 pm
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](http://gimpchat.com/files/218_IMGP3523_sml.JPG)
Kevin
Tue Nov 08, 2011 3:20 pm
lol. now see if you can make those into a script to test out script dupes.
Wed Nov 09, 2011 4:35 pm
So I've used this one on the 120V range
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:
- Code:
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.
KevinUpdate: I've re-written the script and attached it to
this post
Wed Nov 09, 2011 5:59 pm
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
Wed Nov 09, 2011 6:09 pm
I changed the very first line to this Molly.
(define selfmenuroot "<Image>/Filters/Test for Duplicate scripts") ; Change these to suit yourself
Thanks Kevin!
Wed Nov 09, 2011 6:16 pm
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?
Wed Nov 09, 2011 6:20 pm
Just change that first line in the one you installed and refresh scripts.
![Smile :)](./images/smilies/icon_smile.gif)
Or if you like...
Remove the other and
Just use this one.
Thu Nov 10, 2011 7:15 am
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.
- Code:
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:
- Code:
(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)
Thu Nov 10, 2011 7:48 am
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.
Thu Nov 10, 2011 8:09 am
Molly,
15 minutes
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
Thu Nov 10, 2011 9:46 am
Thank you Kevin, I will start working on them.
Thu Nov 10, 2011 10:42 am
oops, I forgot how to keep the mac from adding ".txt" to the file when I open it in text edit! Argh.
Thu Nov 10, 2011 10:56 am
Are you referring to the scripts? If so, just delete the .txt after the .scm.
Thu Nov 10, 2011 12:56 pm
Thanks Kevin.This script will be real handy for everyone.
Perhaps a better menu would be help>check for duplicate scripts
![Image](http://www.gimpchat.com/files/196_2011-11-10_130055.png)
zip attached with menu fix
Thu Nov 10, 2011 7:14 pm
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.
Fri Nov 11, 2011 4:04 am
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](http://gimpchat.com/files/218_proc_browser.png)
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
Fri Nov 11, 2011 5:07 am
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.
Powered by phpBB © phpBB Group.
phpBB Mobile / SEO by Artodia.