It is currently Tue Oct 24, 2017 6:26 am


Latest GIMP Scripts & Plug-ins

All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 34 posts ]  Go to page Previous  1, 2, 3, 4  Next
Author Message
 Post subject: Re: DIEGO's PYTHON PLUG-INS recently released
PostPosted: Sun Jan 31, 2016 2:19 am  (#11) 
Offline
GimpChat Member
User avatar

Joined: Aug 13, 2015
Posts: 312
Location: Somewhere between lost and found.
dinasset: Comment then Small Question, then a big one...

Firstly they work great! Even on 1.8GB images (albeit slowly, but at that size I do not expect lightning...) :tyspin

Question 1:
What is the source and license on the gold pattern?

and 2:
I realize it is a bit late in the game for requests but.... :?

Your wiremap_garagecoder scripts both fail for me on the merge down function. I believe I even know why. The images I work with often have extreme numbers of layers, and as such the layers all appear in groups. Might I request one of three things?
A..Add a PF_BOOL for source layer is part of group (then in script make a copy of source and move it to top as first step);
or,
B..Add a PF_BOOL for source layer is part of group (then in script use gimp_image_reorder_parent on your layer to merge down prior to the merge.)
or,
C..Simply assume this is the case and check before the merge down and act appropriately. This has the added bonuses of being completely user transparent (and interface transparent), and making Your script fully layer group compatible I believe.

Truth is I am capable of making these changes myself, but these are Your babies. GPL or no, I hate to intrude on another's work...
(Must admit some laziness here as well ...)

_________________
The answer was 42. The question is long forgotten. The computer that solved it is now destroyed.
The MK-2 has been built. Should this be the next question?
(Solve if you can ... ;) )
Image


Last edited by jazzon on Sun Jan 31, 2016 2:35 am, edited 1 time in total.

Top
 Post subject: Re: DIEGO's PYTHON PLUG-INS recently released
PostPosted: Sun Jan 31, 2016 2:27 am  (#12) 
Offline
GimpChat Member
User avatar

Joined: Aug 13, 2015
Posts: 312
Location: Somewhere between lost and found.
pseudo code for C above

moving_layer_parent = pdb.gimp_item_get_parent(moving_layer)
target_layer_parent = pdb.gimp_item_get_parent(target_layer)

if not target_layer_parent == moving_layer_parent:
  target_position = pdb.gimp_image_get_item_position(image, target_layer)
  pdb.gimp_image_reorder_item(image, moving_layer, target_layer_parent, target_position - 1) # it is - and not + I THINK

#Now do your merge

_________________
The answer was 42. The question is long forgotten. The computer that solved it is now destroyed.
The MK-2 has been built. Should this be the next question?
(Solve if you can ... ;) )
Image


Top
 Post subject: Re: DIEGO's PYTHON PLUG-INS recently released
PostPosted: Sun Jan 31, 2016 4:09 am  (#13) 
Offline
GimpChat Member

Joined: Jan 20, 2013
Posts: 6843
Location: roma, italy
answers to Jazzon:
1 - it's so much time I have that pattern in my Gimp that I do not remember the origin
2 - thanks for your indications, but I do not manage "groups of layers" in any of my filters, thus sorry to say that I will not apply modifications for that specific purpose; you obviously are totally free of creating your versions of those two filters (open source is really open, I have many of existant filters modified by me for my purposes); you may even publish your revised versions here for other chatters interested in
Thanks for your nice words

_________________
Vanitas vanitatum et omnia vanitas.


Top
 Post subject: Re: DIEGO's PYTHON PLUG-INS recently released
PostPosted: Sun Jan 31, 2016 4:28 am  (#14) 
Offline
GimpChat Member
User avatar

Joined: Aug 13, 2015
Posts: 312
Location: Somewhere between lost and found.
dinasset: No Problem, and will do. Was just trying to avoid consumer confusion on version. I'll add jaz_ to the names of my version, internally and to files, so others can separate them.

Biggest hope was just avoiding another code project ;)

_________________
The answer was 42. The question is long forgotten. The computer that solved it is now destroyed.
The MK-2 has been built. Should this be the next question?
(Solve if you can ... ;) )
Image


Top
 Post subject: Re: DIEGO's PYTHON PLUG-INS recently released
PostPosted: Mon Feb 01, 2016 3:37 am  (#15) 
Offline
GimpChat Member
User avatar

Joined: Aug 13, 2015
Posts: 312
Location: Somewhere between lost and found.
dinasset,
As referenced in the PM I sent You,
Attachment:
File comment: Sample image for testing and the script
bug_test.zip [1.43 MiB]
Downloaded 36 times
here is the code fix, and test file, for the Lyle variant. Tweak and tune as you see fit. It is safe to install side-by-side with yours. This one appears in the same menu You coded it for.

To test, run original "Lyle" script with divisor 1. Then try this one with divisor 1. This one does not include Layer Group settings as You said You had no need.


Having trouble uploading ... logging out and back...brb

EDIT: OK, that was weird... 7 tries and it said not uploaded. Log out and back in and here it is! Oh well.

_________________
The answer was 42. The question is long forgotten. The computer that solved it is now destroyed.
The MK-2 has been built. Should this be the next question?
(Solve if you can ... ;) )
Image


Top
 Post subject: Re: DIEGO's PYTHON PLUG-INS recently released
PostPosted: Mon Feb 01, 2016 4:59 am  (#16) 
Offline
GimpChat Member

Joined: Jan 20, 2013
Posts: 6843
Location: roma, italy
Jazzon, in the attachment I don't see your input image file to get such a strange outcome.
I performed tests with divisor = 1 (even if not in the logic of Lyle!) and got "normal" results, with my input image.
Could you try with a simple image input yourself?

_________________
Vanitas vanitatum et omnia vanitas.


Top
 Post subject: Re: DIEGO's PYTHON PLUG-INS recently released
PostPosted: Mon Feb 01, 2016 5:14 am  (#17) 
Offline
GimpChat Member

Joined: Jan 20, 2013
Posts: 6843
Location: roma, italy
BTW, I made two minor modifications to that filter:
1- set minimun divisor to 2 (Lyle tutorial indicates precisely that image has to be dowsized at that step, thus setting the minimum to 1 was a mistake - procedurally speaking)
2- modified the BlackLayer creation to use dwidth and dheight, as 3d Elevation filter input parms (it was originally width*2 and height*2 on both statements, then I had to take care of abends when 3d Elevation received a value greater than 4096, but I forgot to adjust the corresponding BlackLayer size)

_________________
Vanitas vanitatum et omnia vanitas.


Top
 Post subject: Re: DIEGO's PYTHON PLUG-INS recently released
PostPosted: Mon Feb 01, 2016 7:45 am  (#18) 
Offline
GimpChat Member
User avatar

Joined: Aug 13, 2015
Posts: 312
Location: Somewhere between lost and found.
dinasset
Hmmmm..... I just downloaded the file to my desktop and it showed two files inside. Both extracted ok for me. Trying to add one here, but upload is giving me fits. Just check back here in a while. It will be in this post.

[EDIT: First I couldn't get it to upload, then it arrives twice. I downloaded both to seperate spots, and the images exist in each and open in gimp for me, and look right. Hopefully one will work for you.]


Attachments:
test_image.xcf.zip [1.43 MiB]
Downloaded 29 times
test_image.xcf.zip [1.43 MiB]
Downloaded 28 times

_________________
The answer was 42. The question is long forgotten. The computer that solved it is now destroyed.
The MK-2 has been built. Should this be the next question?
(Solve if you can ... ;) )
Image
Top
 Post subject: Re: DIEGO's PYTHON PLUG-INS recently released
PostPosted: Mon Feb 01, 2016 8:08 am  (#19) 
Offline
GimpChat Member

Joined: Jan 20, 2013
Posts: 6843
Location: roma, italy
there must be something wrong, because you put an .xcf file which presumably is a multilayer gimp file, but I get only a single pasted layer (no need for .xcf to send only one layer...); anyhow, is this strange "zigzag" image your input?

this is what I see

Attachment:
test_image.png
test_image.png [ 954.06 KiB | Viewed 496 times ]

_________________
Vanitas vanitatum et omnia vanitas.


Top
 Post subject: Re: DIEGO's PYTHON PLUG-INS recently released
PostPosted: Mon Feb 01, 2016 8:29 am  (#20) 
Offline
GimpChat Member
User avatar

Joined: Aug 13, 2015
Posts: 312
Location: Somewhere between lost and found.
Yes, thats the image. I converted to single layer and no grpoups to make it easier for you to test. Try running Your base script against it with a Divisor of one. (I know you changed the code already ... ) In fact I still have several versions installed. Give me a sec and I will try to get an image of a bad run up here for ya.

_________________
The answer was 42. The question is long forgotten. The computer that solved it is now destroyed.
The MK-2 has been built. Should this be the next question?
(Solve if you can ... ;) )
Image


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

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts G'MIC plug-in 1.5.2.2 has been released

8

No new posts Python plug-in problems

12

No new posts info about an Ofnuts' python plug-in (SOLVED)

2

No new posts error in gimp loader for python plug-ins ?

12

No new posts Attachment(s) [SOLVED] Cannot get a Python plug-in to show up in GIMP

28



* Login  



Powered by phpBB3 © phpBB Group