It is currently Thu Mar 28, 2024 7:14 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 34 posts ]  Go to page 1, 2  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
User avatar

Joined: Jan 20, 2013
Posts: 14801
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 97 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: 14801
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: 14801
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: 14801
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 1640 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 subject: Re: DIEGO's PYTHON PLUG-INS recently released
PostPosted: Mon Feb 01, 2016 8:41 am  (#21) 
Offline
GimpChat Member
User avatar

Joined: Aug 13, 2015
Posts: 312
Location: Somewhere between lost and found.
This should show a bad image ...
Image

_________________
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:46 am  (#22) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14801
Location: roma, italy
Jazzon,
thanks for your suggestions.
I will try to implement them also on my version.

_________________
"Where am I ?"


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

Joined: Aug 13, 2015
Posts: 312
Location: Somewhere between lost and found.
If You leave the divisor at "value > 1" like you talked about before, all you would need are the lines around the scale statements which alter the destination sizes to use aspect ratios. And even then You mightn't need any at all. The only weirdness I ever got was on Divisor 1. So if You leave it opted out ...

_________________
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 7:36 pm  (#24) 
Offline
GimpChat Member
User avatar

Joined: Aug 13, 2015
Posts: 312
Location: Somewhere between lost and found.
dinasset Are You planning on adding Yours to gimpscripts.com? If so let me know when You do so I can cross link mine. I'm uploading them as three separate plugins today.

_________________
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 7:54 pm  (#25) 
Offline
GimpChat Member
User avatar

Joined: Aug 13, 2015
Posts: 312
Location: Somewhere between lost and found.
Update to my last post.
Kimba reported an error in another thread. When I handle that, then I will upload.

_________________
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: Tue Feb 02, 2016 12:58 am  (#26) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14801
Location: roma, italy
Having taken into account the suggestions received by Jazzon (thanks!), I updated my version of Lyle style Wireframe.
THIS VERSION DOES STILL NOT SUPPORT LAYER GROUPS.
None of my filters do.
Thus, all the users who like to use my scripts on an image with layer groups should instead use Jazzon's version (a different thread).
Attachment:
DIEGO_WIREMAP_WireframeMap_Lyle.7z [3.14 KiB]
Downloaded 101 times


As stated in a previous post, I did modify the "divisor" parameter to accept values > 1, because it's in the spirit of Lyle method (input to 3dElevation should be smaller than expected output).
I also changed the default for the top colour layer (if colour has been selected) to HARDLIGHT instead of COLOR; it's still just a default you may change it as you like unless you flatten the image.
Other interesting results may be obtained using GRAIN_MERGE or SCREEN (set opacity to 70%).
The max output size of the intermediate result coming out from 3dElevation is now 4096 (maximum allowed).
Hope you enjoy it without errors.
Last night my friend Issabella did many tests, so I hope it's now safe (thanks, my friend!).


edit: as soon as other people has tested it, this version will be posted on post#1 to replace the previous one

_________________
"Where am I ?"


Last edited by dinasset on Tue Feb 02, 2016 1:43 am, edited 2 times in total.

Top
 Post subject: Re: DIEGO's PYTHON PLUG-INS recently released
PostPosted: Tue Feb 02, 2016 1:07 am  (#27) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14801
Location: roma, italy
some outcomes from Issabella's tests (thanks again)


Attachments:
Woman face-3,40,1,0-grainmerge.jpg
Woman face-3,40,1,0-grainmerge.jpg [ 492.9 KiB | Viewed 1203 times ]
woman with flowers-wireframemaplyle-3,40,1,0-screen 75 opacity.jpg
woman with flowers-wireframemaplyle-3,40,1,0-screen 75 opacity.jpg [ 807.58 KiB | Viewed 1203 times ]
woman with flowers-wireframemaplyle-3,40,1,0-hard light.jpg
woman with flowers-wireframemaplyle-3,40,1,0-hard light.jpg [ 923.09 KiB | Viewed 1203 times ]

_________________
"Where am I ?"
Top
 Post subject: Re: DIEGO's PYTHON PLUG-INS recently released
PostPosted: Tue Feb 02, 2016 1:10 am  (#28) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14801
Location: roma, italy
some other


Attachments:
6757890196084759-wireframemaplyle-2,35,1,0-grain merge.jpg
6757890196084759-wireframemaplyle-2,35,1,0-grain merge.jpg [ 356.54 KiB | Viewed 1203 times ]
333259_261535493_1_575-wireframemaplyle-2,30,1,0-screen 75 opacity.jpg
333259_261535493_1_575-wireframemaplyle-2,30,1,0-screen 75 opacity.jpg [ 100.3 KiB | Viewed 1203 times ]
nice woman-wireframemaplyle-2,35,0,0.jpg
nice woman-wireframemaplyle-2,35,0,0.jpg [ 251.58 KiB | Viewed 1203 times ]

_________________
"Where am I ?"
Top
 Post subject: Re: DIEGO's PYTHON PLUG-INS recently released
PostPosted: Tue Feb 02, 2016 1:14 am  (#29) 
Offline
GimpChat Member
User avatar

Joined: Aug 13, 2015
Posts: 312
Location: Somewhere between lost and found.
dinasset, :rofl forgot to mention results were better with 4096, I had changed mine for tests, but now that I think about it, I think I forgot to change it in the release!

_________________
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: Tue Feb 02, 2016 4:18 am  (#30) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14801
Location: roma, italy
jazzon wrote:
dinasset Are You planning on adding Yours to gimpscripts.com? If so let me know when You do so I can cross link mine. I'm uploading them as three separate plugins today.

I have to sincerely admit that I never learned correctly how to post my filters in there; all those of mine you find there were gracefully created/amended/completed by Gnutux (one time also Graechan): he spent a lot of time trying to teach me, but I'm a bit "hardkopfed". Thus, once Gnutux left his mission here, I did no more try to insert my filters under Gimp-chat's GIMPS SCRIPTS & PLUG-INS.
If you are able to do that, you may post together my versions and yours (different versions, like in Layer-Effects...).

_________________
"Where am I ?"


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