It is currently Tue Apr 16, 2024 1:00 am


All times are UTC - 5 hours [ DST ]


Switch to mobile style

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

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
Hi all !
I think that -having passed time and tests- my recently released filters in python concerning wireframe mapping may be "promoted" to go under my main menu entry : DIEGO and not DIEGO_TEST.
Hence I repost here all three with the following notes:
1- NO CHANGES in functionality
2- MENU PLACEMENT now follows my std classification, thus: under DIEGO and a specific subfolder WIREMAP in this case
3- file name follows my std naming conventions, i.e. the prefix in front of the filter name indicates clearly were it will appear once installed: DIEGO_WIREMAP_filtername, in this case
Because of point 1, there is no need of re-download/install them, unless you -like me- want to have one single (DIEGO) menu entry, where you have already (if downloaded) DIEGO_COLOURS_Mod_LCS, DIEGO_QUANTIZE_CrystallizeN ...)

Here the 3 attachments:
Attachment:
DIEGO_WIREMAP_WireframeMap_Garagecoder.7z [2.31 KiB]
Downloaded 309 times

Attachment:
DIEGO_WIREMAP_WireframeMap_Garagecoder_2.7z [2.47 KiB]
Downloaded 294 times



I didn't receive any further comment on post #26, thus i report directly here the amended version of Lyle method.
Attachment:
DIEGO_WIREMAP_WireframeMap_Lyle.7z [3.14 KiB]
Downloaded 278 times

_________________
"Where am I ?"


Last edited by dinasset on Wed Feb 03, 2016 3:22 am, edited 1 time in total.

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: DIEGO's PYTHON PLUG-INS recently released
PostPosted: Sat Jan 30, 2016 3:43 am  (#2) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12516
Definitely appreciated your efforts, Diego. Thanks for what you gave us here. :)

_________________
Lyle

Psalm 109:8

Image


Top
 Post subject: Re: DIEGO's PYTHON PLUG-INS recently released
PostPosted: Sat Jan 30, 2016 3:50 am  (#3) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
thanks Lyle.
For all those who decide to re-download/install those 3 filters, please remove previous versions in order to avoid conflicts/duplications: the internal name of the filters are the same, only the menu entry has changes and the external name of the filter, for clarity.

_________________
"Where am I ?"


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

Joined: Mar 16, 2015
Posts: 613
Location: On Earth,specifically Queensland,Australia
I am confused. You have listed two Garagecoder filters and 1 Lyle but I have 2 Lyle filters and one Garagecoder.

_________________
Image


Top
 Post subject: Re: DIEGO's PYTHON PLUG-INS recently released
PostPosted: Sat Jan 30, 2016 4:21 am  (#5) 
Offline
GimpChat Member
User avatar

Joined: Mar 01, 2014
Posts: 12636
Location: Spain, Aragón
Thank you Dinasset for a great job. :clap Congrats!
Kimba if I were you, I'd remove your old files and put these new ones. :)

_________________
Image

Gimp 2.10.30(samj) portable _ OS Windows 10 Home_ 64bits
Don’t be afraid to start over. It’s a new chance to rebuild what you want.


Last edited by Issabella on Sat Jan 30, 2016 4:47 am, edited 1 time in total.

Top
 Post subject: Re: DIEGO's PYTHON PLUG-INS recently released
PostPosted: Sat Jan 30, 2016 4:42 am  (#6) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
those are the current versions
maybe that:
- you kept an old version of Lyle style
- you didn't download the 2nd GC style

_________________
"Where am I ?"


Top
 Post subject: Re: DIEGO's PYTHON PLUG-INS recently released
PostPosted: Sat Jan 30, 2016 5:18 am  (#7) 
Offline
GimpChat Member
User avatar

Joined: Dec 08, 2013
Posts: 1088
Dinasset - Thankyou.
Kimbra - One of the garageCoders appear to be for Python2.7.

_________________
Image


Top
 Post subject: Re: DIEGO's PYTHON PLUG-INS recently released
PostPosted: Sat Jan 30, 2016 5:42 pm  (#8) 
Offline
GimpChat Member
User avatar

Joined: Mar 16, 2015
Posts: 613
Location: On Earth,specifically Queensland,Australia
dinasset wrote:
those are the current versions
maybe that:
- you kept an old version of Lyle style
- you didn't download the 2nd GC style
Yes Dinasset that's probably what happened. They all work well except that Golden option in Garagecoder2. Its hardwired for a gradient or pattern I don't have.

_________________
Image


Top
 Post subject: Re: DIEGO's PYTHON PLUG-INS recently released
PostPosted: Sat Jan 30, 2016 7:32 pm  (#9) 
Offline
GimpChat Member

Joined: May 12, 2015
Posts: 4694
Kimba, I downloaded the gold pattern from the thread on wireframe 2.
Attachment:
gold-32246.pat [768.03 KiB]
Downloaded 281 times


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

Joined: Mar 16, 2015
Posts: 613
Location: On Earth,specifically Queensland,Australia
Thanks Pat.

_________________
Image


Top
 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
User avatar

Joined: Jan 20, 2013
Posts: 14816
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

_________________
"Where am I ?"


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 98 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
User avatar

Joined: Jan 20, 2013
Posts: 14816
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?

_________________
"Where am I ?"


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

Joined: Jan 20, 2013
Posts: 14816
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)

_________________
"Where am I ?"


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 86 times
test_image.xcf.zip [1.43 MiB]
Downloaded 88 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
User avatar

Joined: Jan 20, 2013
Posts: 14816
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 1654 times ]

_________________
"Where am I ?"


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 1, 2  Next

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) DIEGO Transfer Colours Plug-in for GIMP 2.10

23

No new posts use in python of plug-in lighting

4

No new posts Attachment(s) GIMP Python-Fu Plug-in template

4

No new posts GIMP 2.10 doesn't install my python plug-ins

1

No new posts Plug-in crashes after OS upgrade: python version mismatch? maybe?

4



* Login  



Powered by phpBB3 © phpBB Group