It is currently 15 Dec 2017, 04:15

GIMP Python Fu ScriptsExtrude Active Layer with Active Path script for GIMP (Showcase | Slideshow)

Share your Python Fu scripts for GIMP here
User avatar
tim

Administrator
View: Showcase | Slideshow
Topic Posts: 8/15
Posts: 2000
Joined: 25 Sep 2016, 17:16
Cash on hand: 6,288.73 GLP
Bank: 41,331.25 GLP
Gender: Guy
Location: Victoria, BC
Website: https://gimplearn.net
Operating System: Windows
GIMP Version: 2.8.22
My Personal Blog
My FineArtAmerica
x 1004
x 217
Contact:
Canada

Extrude Active Layer with Active Path script for GIMP

Post#1 by tim » 04 Nov 2016, 11:10


This script will extrude your active layer based on Active Path.
It's suggested if you want cool 3D effect like samples, to bump map your active layer first before running script.
It'll use the active gradient, while extruding.
:download:
Extrude_With_Path.zip #
zipped .py file (unzip, put in your GIMP's /plug-ins/folder).
(2.23 KiB) Downloaded 37 times
:download:
Extrude_With_Path (2).zip #
version 2 - removed debug messages so script would run cleaner a little faster.
(2.26 KiB) Downloaded 46 times
:download:
Extrude_With_Path (3).zip #
version 3 - fixed gradient mapping bug for when path is really short and added reverse gradient option.
(2.46 KiB) Downloaded 71 times
Menu Location: Python-fu -> Extrude Active Layer with Active Path...

Instructions:
If you want 3D effect like samples shown below, bump-map your active layer first (no need to be fancy just bump map it using whatever the default setting is).
Then have an active path.
Run script and it'll extrude your active layer based on your active path. It doesn't matter where the path is located as long as ending point is different from starting point it'll extrude. Everything is done relative to the starting/ending point of the path.
Attachments
Extrude_With_Path_01.png
zigzag path using 100 percent starting brush size
Extrude_With_Path_01.png # (64.38 KiB) Viewed 857 times (Watermarked | Thumbnail)
Extrude_With_Path_02.png
straight path using 1 percent starting brush size
Extrude_With_Path_02.png # (46.86 KiB) Viewed 857 times (Watermarked | Thumbnail)
0 x



aka Tin
Image gimplearn.net                                              

Registered members enjoy ads-free content
User avatar
Pat625
Script Tester
View: Showcase | Slideshow
Topic Posts: 4/15
Posts: 1913
Joined: 27 Sep 2016, 20:35
Cash on hand: 11,180.32 GLP
Gender: Gal
Location: USA
Operating System: Windows
GIMP Version: 2.8.22
x 7
x 407
United States of America

Post#2 by Pat625 » 04 Nov 2016, 15:08


Tin, I get error messages throughout the script running. Also it seems to run forever. Am I doing something wrong. Windows 10. Gimp 2.8.18.
0 x




User avatar
tim

Administrator
View: Showcase | Slideshow
Topic Posts: 8/15
Posts: 2000
Joined: 25 Sep 2016, 17:16
Cash on hand: 6,288.73 GLP
Bank: 41,331.25 GLP
Gender: Guy
Location: Victoria, BC
Website: https://gimplearn.net
Operating System: Windows
GIMP Version: 2.8.22
My Personal Blog
My FineArtAmerica
x 1004
x 217
Contact:
Canada

Post#3 by tim » 04 Nov 2016, 15:12


What are the messages?
if you have a long path, or if you start with a big percentage above 100 percent it takes forever.

EDIT: those aren't error messages, it print it out to debug code... i'll remove that debug code and upload version 2 soon.
UPDATE: There I just updated with version 2, give that one a try.
0 x



aka Tin
Image gimplearn.net                                              

User avatar
Pat625
Script Tester
View: Showcase | Slideshow
Topic Posts: 4/15
Posts: 1913
Joined: 27 Sep 2016, 20:35
Cash on hand: 11,180.32 GLP
Gender: Gal
Location: USA
Operating System: Windows
GIMP Version: 2.8.22
x 7
x 407
United States of America

Post#4 by Pat625 » 04 Nov 2016, 15:25


Extrude active layer screenshot.jpg
Extrude active layer screenshot.jpg # (142.1 KiB) Viewed 828 times (Watermarked | Thumbnail)
Here is a screenshot. It has already been running for about 4 minutes. What is the ideal percentage of the brush to use?
0 x




User avatar
tim

Administrator
View: Showcase | Slideshow
Topic Posts: 8/15
Posts: 2000
Joined: 25 Sep 2016, 17:16
Cash on hand: 6,288.73 GLP
Bank: 41,331.25 GLP
Gender: Guy
Location: Victoria, BC
Website: https://gimplearn.net
Operating System: Windows
GIMP Version: 2.8.22
My Personal Blog
My FineArtAmerica
x 1004
x 217
Contact:
Canada

Post#5 by tim » 04 Nov 2016, 15:26


simplest is 100 percent, and use a short path. but use version 2 i updated just now it's faster without printing debugging messages.
0 x



aka Tin
Image gimplearn.net                                              

User avatar
Pat625
Script Tester
View: Showcase | Slideshow
Topic Posts: 4/15
Posts: 1913
Joined: 27 Sep 2016, 20:35
Cash on hand: 11,180.32 GLP
Gender: Gal
Location: USA
Operating System: Windows
GIMP Version: 2.8.22
x 7
x 407
United States of America

Post#6 by Pat625 » 04 Nov 2016, 15:56


Hurrah.jpg
Hurrah.jpg # (310.51 KiB) Viewed 819 times (Watermarked | Thumbnail)
The image here may not have been the best choice but it was "Hurrah" with a curved path. Initial color was the text black. There was not color change and I had set an active gradient. Was I supposed to color it first with the gradient?
0 x




User avatar
tim

Administrator
View: Showcase | Slideshow
Topic Posts: 8/15
Posts: 2000
Joined: 25 Sep 2016, 17:16
Cash on hand: 6,288.73 GLP
Bank: 41,331.25 GLP
Gender: Guy
Location: Victoria, BC
Website: https://gimplearn.net
Operating System: Windows
GIMP Version: 2.8.22
My Personal Blog
My FineArtAmerica
x 1004
x 217
Contact:
Canada

Post#7 by tim » 04 Nov 2016, 16:16


Ideally, you should use a bumped mapped white text because then you'll get some bright edges along with dark edges so it looks good when extruded. Because it calls colorify and try to apply gradient colors to the active layer. But if the active layer is black, then it can't colorify it because black is considered the darkest of any color so you'll just get black.
0 x



aka Tin
Image gimplearn.net                                              

Post Reply

Last 20 Members Who Visited This Topic

User avatar RJKD (1), User avatar tim (1), User avatar Pat625 (3)

  • Similar Topics
    Replies
    Views
    Last post
• Featuring Members' Works (Image Attachments Only) •
1: oldmangrumpy
2: tim
3: david
4: leopardo-40
5: Pat625
6: Pat625
7: Conbagui

Who is online

Users browsing this forum: No registered users and 2 guests