It is currently Mon Jul 22, 2024 6:29 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 99 posts ]  Go to page Previous  1, 2, 3, 4, 5  Next
Author Message
 Post subject: Re: Test for duplicate scripts
PostPosted: Mon May 14, 2012 11:39 am  (#71) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
bad :teeth

_________________
Image


Top
 Post subject: Re: Test for duplicate scripts
PostPosted: Mon May 14, 2012 11:47 am  (#72) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14719
Location: USA
Yes i was getting this error and no script in Help menu. :)
"unbound variable"
Thanks Kevin! Works excellent now.

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: Test for duplicate scripts
PostPosted: Mon May 14, 2012 12:18 pm  (#73) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14719
Location: USA
0 duplicates. :)

_________________
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: Test for duplicate scripts
PostPosted: Fri May 25, 2012 1:23 am  (#74) 
Offline
Global Moderator
User avatar

Joined: Nov 16, 2011
Posts: 5128
Location: Metro Vancouver, BC
I just ran "Test for Duplicate Scripts". I got the first one v1.5 at GimpScripts, which didn't work in Vista, Gimp 2.8. I just downloaded v1.7 from here which ran like a charm. I don't have that many extra scripts added, so I was surprised to find 6 duplicates. They were all related to "gimpfx-foundry-2.6-1" scripts. There were even two duplicates within the "gimpfx-foundry-2.6-1" folder. "meiklejohn-tonemapping.scm" and "phillips-tonemapping.scm".

Kevin, Great script!
GimpScripts.com still has v1.5 listed.

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


Top
 Post subject: Re: Test for duplicate scripts
PostPosted: Fri May 25, 2012 3:39 am  (#75) 
Offline
Script Coder
User avatar

Joined: Jun 22, 2010
Posts: 1171
Location: Here and there
Looks like v1.7 is not working for GIMP 2.6 :(


Top
 Post subject: Re: Test for duplicate scripts
PostPosted: Fri May 25, 2012 5:21 am  (#76) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
Test for duplicate scripts works perfectly for me in Gimp-2.6.12 but will not even recognize itself in Gimp-2.8 (Partha's build)

_________________
Image


Top
 Post subject: Re: Test for duplicate scripts
PostPosted: Fri May 25, 2012 8:46 am  (#77) 
Offline
Script Coder
User avatar

Joined: Jun 22, 2010
Posts: 1171
Location: Here and there
Here's v1.8, which I think should work for both 2.6.7 and 2.8.0 (at least I've tried it on a Windows XP machine with both 2.6 and 2.8). It now identifies itself as v1.8 in the menu entry just to make it easy to see which version you've got.

Kevin

Attachment:
Untitled.png
Untitled.png [ 133.84 KiB | Viewed 2963 times ]


Attachments:
kp24_test_for_duplicate_scripts.scm [27.37 KiB]
Downloaded 189 times
Top
 Post subject: Re: Test for duplicate scripts
PostPosted: Fri May 25, 2012 8:55 am  (#78) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
Thank you very much Kevin. I will go over to Windows and try it on my 2.8 Gimp. I will post back if it works.

Edit: I placed your new plug-in in my 2.8 folder and it now shows. I tested it and didn't get any errors unless this is one below. It didn't show any dupes.

Image

I don't see any version number on the script.
Using Win7 (x64)

_________________
Image


Top
 Post subject: Re: Test for duplicate scripts
PostPosted: Fri May 25, 2012 9:54 am  (#79) 
Offline
GimpChat Member

Joined: Aug 05, 2011
Posts: 606
Location: limestone,ny
win7 64
2.8
Image


Top
 Post subject: Re: Test for duplicate scripts
PostPosted: Fri May 25, 2012 10:00 am  (#80) 
Offline
Script Coder
User avatar

Joined: Jun 22, 2010
Posts: 1171
Location: Here and there
I can only think that you've both got scripts that have something about them that I've not seen before.

If either or both of you would like to help find the problem, try running it again with the logging set to "Too Much", then having a look the end of the duplicate_scripts.txt file as it should give some idea of where the problem has occurred.

Kevin


Top
 Post subject: Re: Test for duplicate scripts
PostPosted: Fri May 25, 2012 10:15 am  (#81) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
I ran it again Kevin and in the error console says the same thing except a different error #19695. I don't know what you mean by duplicate_scripts.txt file. Where is that

"Test For Duplicate Scripts v1.8 Warning
Error while executing script-fu-kp24_test_for_duplicate_scripts:

Error: ( : 19695) car: argument 1 must be: pair"

_________________
Image


Top
 Post subject: Re: Test for duplicate scripts
PostPosted: Fri May 25, 2012 10:18 am  (#82) 
Offline
Script Coder
User avatar

Joined: Jun 22, 2010
Posts: 1171
Location: Here and there
molly wrote:
I ran it again Kevin and in the error console says the same thing except a different error #19695. I don't know what you mean by duplicate_scripts.txt file. Where is that


On Windows it ends up in your profile directory i.e. one level up from where your .gimp-2.8 folder is.

Kevin


Top
 Post subject: Re: Test for duplicate scripts
PostPosted: Fri May 25, 2012 10:28 am  (#83) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
does this help?


Attachments:
duplicate_scripts.rar [3.54 KiB]
Downloaded 149 times

_________________
Image
Top
 Post subject: Re: Test for duplicate scripts
PostPosted: Fri May 25, 2012 10:31 am  (#84) 
Offline
GimpChat Member

Joined: Aug 05, 2011
Posts: 606
Location: limestone,ny
duplicate_scripts.txt attached


Attachments:
duplicate_scripts.rar [1.16 KiB]
Downloaded 141 times
Top
 Post subject: Re: Test for duplicate scripts
PostPosted: Fri May 25, 2012 10:37 am  (#85) 
Offline
Script Coder
User avatar

Joined: Jun 22, 2010
Posts: 1171
Location: Here and there
molly wrote:
does this help?


Yes. It tells me that it went wrong at a file called Pattern from Image(1).scm so now I'd like to see what that file looks like. Can you point me to where it came from, so I can examine it what to see what's different?

Kevin


Top
 Post subject: Re: Test for duplicate scripts
PostPosted: Fri May 25, 2012 10:41 am  (#86) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
Is this what you want?


Attachments:
Pattern from Image(1).rar [1.68 KiB]
Downloaded 150 times

_________________
Image
Top
 Post subject: Re: Test for duplicate scripts
PostPosted: Fri May 25, 2012 10:55 am  (#87) 
Offline
Script Coder
User avatar

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

It's causing an error because it's got this code at the bottom:
(gimp-image-resize-to-layers image)
        (set! image-layer (car (gimp-image-merge-visible-layers image EXPAND-AS-NECESSARY)))
    (gimp-drawable-set-name image-layer "Pattern")
        (plug-in-autocrop 1 image image-layer)
        (gimp-image-scale-full image width height 2)
       
;;;; Create a copy of the image
        (set! patternImage (car (gimp-channel-ops-duplicate image)))
        (set! pattern (car (gimp-image-merge-visible-layers image EXPAND-AS-NECESSARY)))

;;;; Save the pattern file
        (set! fileName (string-append (car (gimp-gimprc-query "gimp_dir")) "/patterns/" inName ".pat"))
        (file-pat-save 1 patternImage pattern fileName "" inName)

;;;; Delete the duplicated image
        (gimp-image-delete patternImage)

        ; Return
        (list inName)

;;;;refresh the patterns       
        (gimp-patterns-refresh)

All of which shouldn't be there.

It looks like the original is from here: viewtopic.php?f=9&t=3724

Kevin


Top
 Post subject: Re: Test for duplicate scripts
PostPosted: Fri May 25, 2012 10:58 am  (#88) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
So, what do I do now. Should I delete the script or delete all that green text you posted. I can remove the script easy enough if that should solve the problem.

_________________
Image


Top
 Post subject: Re: Test for duplicate scripts
PostPosted: Fri May 25, 2012 11:02 am  (#89) 
Offline
Script Coder
User avatar

Joined: Jun 22, 2010
Posts: 1171
Location: Here and there
I'd delete all the text above and re-save the file - It then doesn't cause the test script to error.

Kevin


Top
 Post subject: Re: Test for duplicate scripts
PostPosted: Fri May 25, 2012 11:22 am  (#90) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
Okay I did all that and still got the error, so I deleted the scm and I still get the error. Woe is me. :teeth

_________________
Image


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

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Juxtapose exactly duplicate paths

2

No new posts Attachment(s) GEGL Jelly - Apply on Duplicate Layer above and use eraser

3

No new posts Attachment(s) pm_create_a_depthmap_image.py (Test)

8

No new posts Jewelry Text Test

8



* Login  



Powered by phpBB3 © phpBB Group