It is currently 17 Dec 2017, 23:10

GIMP Python Fu ScriptsPM Blocks and MultiExtrude script (Showcase | Slideshow)

Share your Python Fu scripts for GIMP here
User avatar
animicule

Script Coder
View: Showcase | Slideshow
Topic Posts: 23/79
Posts: 594
Joined: 10 Jan 2017, 07:25
Cash on hand: 558.96 GLP
Bank: 36,031.00 GLP
Gender: Guy
Location: South Dakota
Operating System: Windows
GIMP Version: 2.9.5
x 164
United States of America

PM Blocks and MultiExtrude script

Post#1 by animicule » 25 Jun 2017, 13:55


BA_Photomaster Blocks version 2.
Requires script_fu_mhbevel3dimg22
(as shown in python console pdb browser)
The file name in the scripts folder is
2028_mhbevel3d.scm
This script also uses Script-Fu-Drop-Shadow
(as shown in:
Filters > Python-Fu > Console > Browse
and type Fu_Drop into the search box (using the underscore instead
of a hyphen) ) - which is therein reported to be a
Temporary Procedure (I hope that means the next
thing to standard in Gimp)

Fix concat error Pat reported. 6/26/17

This version added ability to manage the extra
images created by the MH3dBevel, which are
just temporary images as far as this script is
concerned, ..,at least to the limit of the search routine loop,
which is now 1,500. If you hit the limit, it will not remove
those temporary images on completion.
A warning message will appear in the form
of a Gimp pop up message when the number hits 1,200.
Save any images you want, and restart gimp to reset the counter.
The counter is only for this script and the limit only affects
this script. It took a lot of testing for me to hit the
limit. Each image has an id number and they are incremental.
The ID's just keep getting larger. The loop is used
to find how many images are open in your current gimp session,
(how high the id numbers are at the time) and to identify
and remove only the temporary images created
by 3DBevel. To keep the script fast, I imposed an artificial 'limit'
in the search loop. The limit is 1,500 to keep the search fast.
When the number of the ID's exceeds 1200, multiple warnings
sent as Gimp Message boxes will nag you to save the files you want
and restart gimp. If you somehow manage to ignore the warnings, when
the number is exceeded, this script will not be able to remove the 'temporary images' and it will not be able to unpack some lists that are used. You will be able
to continue to work in other images and use other scripts - it only affects
this script. It takes hours of normal gimping without restarting Gimp
to reach those numbers, but the advantage is keeping the search numbers low
allows the searches to complete so fast that they are not really noticed while running.

Also added a "Multi Extrude" function for something a little different, per Pat's
request.

Quirks and Tips.
If the color high light layers are blank,
Seems to be caused by the Paint Brush Tool
not being set as default in Gimp saved settings.
The script can not change default tools
(any one know of a way around this?)
Select the color tool on the UI and run the script again.

If you choose the alternate outcome:
It accepts the selections for block border, highlight color
block pattern and 3dbevel amount from the Top Block
section of the dialog box.

If the lines in your highlights seem 'uneven', (thin and thick
lines or bright and dark) it seems to be to be caused by viewing in the
'fit image to window (<shift>+<ctrl>+<j>)' view mode.
At 100% mode they look nice and even.

If you want the highlight lines to look a little different
set the drawing tool to Airbrush, Pencil, Eraser, or Brush.
I have not found a way to set the tool in the contexts that
overrides the user interface. Even though the context has
been set to brush in the script, if you don't want lines,
choose the eraser tool before running it.
(or you can just set the Visibility off on the Highlight Layers if
they have already been created).

If you enter an even number into the 'Multi Extrude Counter',
the outcome will have a 'cut out' silhoutte type subject in the center.

If you enter an odd number into 'Multi Extrude Counter',
the outcome will have an 'extruded' subject in the center.

You may find some nice outcomes by selecting the
flat layer with alpha from the Multi Extrude outcome, with or without
placing the original subject back into the center of it and
making a new from visible layer to use as the subject
of a 2nd run with Multi Extrude set to no, and thereby adding the
2nd block and the wall to it, complete all your input sections..

If you want to change the look of the Extruded Edges,
they are isolated in the layers stack, so you can use the
Color Tools from the colors menu on just the edges.
The block faces are the same, as well as other things
like the subject extrusion, the highlight lines,
or even the drop shadows.

The extruded Top Block (subject block) has the layers
already linked in the (second) layergroup, so you can move it
around with ease. You can set the layers in the group
to your taste, set all other layers to Not Visible, and
'make a new layer from visible' for a duplicate block
to move around an place where you like.

You can use the MOVE tool and any layer including
the drop shadows. If they are in the Top Block,
just click on the Link symbol (little piece of chain)
so that it turns off. When it is off, the layer will
move by itself. If you want to move several layers
the same amount, you can link them before moving,
but only the layers that you want to move can have
the link on, otherwise those layers will move also.
<CTRL>+Z will undo mistakes like that as well
as anything you do Except delete the image.
You need to save the image before you close it,
or it is gone forever.

If you would like to see some different 'wall' layer bump map outcomes
you can duplicate the wall layer by clicking the duplicate layer icon
at the bottom of the layer stack (blue icon-looks similar to a monitor but
it is really 2 photos with white borders, one on top of the other)
and then clicking on the 'wall copy' layer in the layer stack
to make the copy the active layer (the active layer has a white
border when you are looking at the layer stack). Then double click
your color selection tool and choose your new color and click ok.
With your mouse, click and drag the color of your choice onto the
'wall copy' layer and drop it. You will see the wall copy layer icon
change color. Next, from the top menu, choose filters -> map ->bumpmap
select a different bump map pattern. Please note that the preview window
in bump map displays the image that the bump map will be applied to, so
if it is not the correct one, now is the time to select the layer you want to
apply the bump map to. After that verification, select your bump layer
from the list, and you can select other bump options there as well,
but to begin with, the default of compensate for darkening being checked,
setting the Depth and leaving the rest at defaults will give a good result.

---------------
Overall, this is now a very well behaved script (imo), and
I learned a lot while making it, .. as usual, mostly, things
NOT to do.... hee hee hee). So have fun and post an
outcome!
---------------
Attachments
BA_Photomaster Blocks_v2.py #
(20.08 KiB) Downloaded 29 times
Last edited by animicule on 27 Jun 2017, 12:18, edited 5 times in total.
0 x




Registered members enjoy ads-free content
User avatar
animicule

Script Coder
View: Showcase | Slideshow
Topic Posts: 23/79
Posts: 594
Joined: 10 Jan 2017, 07:25
Cash on hand: 558.96 GLP
Bank: 36,031.00 GLP
Gender: Guy
Location: South Dakota
Operating System: Windows
GIMP Version: 2.9.5
x 164
United States of America

Post#2 by animicule » 25 Jun 2017, 13:59


Top is a first run of multi extrude..
You can obtain errors by not having all input fields completed.


2nd is a run of the script on the outcome from the first.
Attachments
2runs 1st run multi extrude outcome for subject of 2nd run.png
2runs 1st run multi extrude outcome for subject of 2nd run.png # (585.73 KiB) Viewed 411 times (Watermarked | Thumbnail)
2nd run - first multi extrude 2nd multi ext outcome as subject.jpg
2nd run - first multi extrude 2nd multi ext outcome as subject.jpg # (254.85 KiB) Viewed 411 times (Watermarked | Thumbnail)
0 x




User avatar
animicule

Script Coder
View: Showcase | Slideshow
Topic Posts: 23/79
Posts: 594
Joined: 10 Jan 2017, 07:25
Cash on hand: 558.96 GLP
Bank: 36,031.00 GLP
Gender: Guy
Location: South Dakota
Operating System: Windows
GIMP Version: 2.9.5
x 164
United States of America

Post#3 by animicule » 25 Jun 2017, 14:04


This works well with text also, I just like photos better.

Top one is
Custom Font example 1 multi with Top Extrusion dark-cut, Subject Extrusion Dropshadow, Subject Extrusion-cut and subject Extrusion dropshadow

The middle one is
Custom Font example 2 same as 1 without subject extrusion dropshadow

And the Third one
Custom Font example 3 same as 2 without subject extrusion cut.

So you have plenty of options
Attachments
Custom Font example 1 multi with Top Extrusion dark-cut, Subject Extrusion Dropshadow, Subject Extrusion-cut and subject Extrusion dropshadow.jpg
Custom Font example 1 multi with Top Extrusion dark-cut, Subject Extrusion Dropshadow, Subject Extrusion-cut and subject Extrusion dropshadow.jpg # (263.75 KiB) Viewed 411 times (Watermarked | Thumbnail)
Custom Font example 2 same as 1 without subject extrusion dropshadow.jpg
Custom Font example 2 same as 1 without subject extrusion dropshadow.jpg # (265.05 KiB) Viewed 411 times (Watermarked | Thumbnail)
Custom Font example 3 same as 2 without subject extrusion cut.jpg
Custom Font example 3 same as 2 without subject extrusion cut.jpg # (281.68 KiB) Viewed 411 times (Watermarked | Thumbnail)
0 x




User avatar
animicule

Script Coder
View: Showcase | Slideshow
Topic Posts: 23/79
Posts: 594
Joined: 10 Jan 2017, 07:25
Cash on hand: 558.96 GLP
Bank: 36,031.00 GLP
Gender: Guy
Location: South Dakota
Operating System: Windows
GIMP Version: 2.9.5
x 164
United States of America

Post#4 by animicule » 25 Jun 2017, 14:12


Examples of difference between the User Interface selected Drawing tools.
Even thought in the script a preference of contexts has been implemented,
it seems the user interface still take some precedence.

If you have the eraser tool selected in the user interface, the hightlights will not appear in
the outcome. Odd, because having said that I have found that sometimes they do...
But to be certain they will, have the brush tool selected before running.
Attachments
Draw  tool-Airbrush using multi extrude option and 31 pixel bevel.jpg
Draw tool-Airbrush using multi extrude option and 31 pixel bevel.jpg # (143.84 KiB) Viewed 410 times (Watermarked | Thumbnail)
Draw  tool-Brush using multi extrude option and 31 pixel bevel.jpg
Draw tool-Brush using multi extrude option and 31 pixel bevel.jpg # (165.19 KiB) Viewed 410 times (Watermarked | Thumbnail)
Draw  tool-Eraser using multi extrude option and 31 pixel bevel.jpg
Draw tool-Eraser using multi extrude option and 31 pixel bevel.jpg # (128.65 KiB) Viewed 410 times (Watermarked | Thumbnail)
Draw  tool-INK using multi extrude option and 31 pixel bevel.jpg
Draw tool-INK using multi extrude option and 31 pixel bevel.jpg # (21.01 KiB) Viewed 410 times (Watermarked | Thumbnail)
Draw  tool-Pencil using multi extrude option and 31 pixel bevel.jpg
Draw tool-Pencil using multi extrude option and 31 pixel bevel.jpg # (167.74 KiB) Viewed 410 times (Watermarked | Thumbnail)
0 x




User avatar
animicule

Script Coder
View: Showcase | Slideshow
Topic Posts: 23/79
Posts: 594
Joined: 10 Jan 2017, 07:25
Cash on hand: 558.96 GLP
Bank: 36,031.00 GLP
Gender: Guy
Location: South Dakota
Operating System: Windows
GIMP Version: 2.9.5
x 164
United States of America

Post#5 by animicule » 25 Jun 2017, 14:15


Here are a couple just for fun!
Attachments
BA_PhotomasterBlockv2_raregreenmoth.jpg
BA_PhotomasterBlockv2_raregreenmoth.jpg # (321.61 KiB) Viewed 409 times (Watermarked | Thumbnail)
0 x




User avatar
animicule

Script Coder
View: Showcase | Slideshow
Topic Posts: 23/79
Posts: 594
Joined: 10 Jan 2017, 07:25
Cash on hand: 558.96 GLP
Bank: 36,031.00 GLP
Gender: Guy
Location: South Dakota
Operating System: Windows
GIMP Version: 2.9.5
x 164
United States of America

Post#6 by animicule » 25 Jun 2017, 14:18


I have used this café table before, but it did not look like this!
Attachments
BA_PhotomasterBlockv2_182cool.jpg
BA_PhotomasterBlockv2_182cool.jpg # (195.66 KiB) Viewed 408 times (Watermarked | Thumbnail)
0 x




User avatar
animicule

Script Coder
View: Showcase | Slideshow
Topic Posts: 23/79
Posts: 594
Joined: 10 Jan 2017, 07:25
Cash on hand: 558.96 GLP
Bank: 36,031.00 GLP
Gender: Guy
Location: South Dakota
Operating System: Windows
GIMP Version: 2.9.5
x 164
United States of America

Post#7 by animicule » 25 Jun 2017, 14:19


And one last one for today
Attachments
BA_PhotomasterBlockv2_13_bird.jpg
BA_PhotomasterBlockv2_13_bird.jpg # (99.35 KiB) Viewed 408 times (Watermarked | Thumbnail)
0 x




Post Reply

Last 20 Members Who Visited This Topic

User avatar Pat625 (145), User avatar leopardo-40 (16), User avatar gnerd (39), User avatar animicule (83), User avatar tim (52), User avatar PhotoMaster (13), User avatar RJKD (53), User avatar Pegleg44 (1), User avatar Issabella (74), User avatar Ella (23), User avatar Conbagui (3), User avatar Steve Reid (1), User avatar oldmangrumpy (2), User avatar Wallace (5), User avatar Graechan (1)

  • Similar Topics
    Replies
    Views
    Last post
• Featuring Members' Works (Image Attachments Only) •
1: Issabella
2: animicule
3: animicule
4: david
5: Conbagui
6: Issabella
7: tim

Who is online

Users browsing this forum: No registered users and 2 guests