It is currently Sun Apr 26, 2015 8:15 pm


Latest GIMP Scripts & Plug-ins

All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 47 posts ]  Go to page 1, 2, 3, 4, 5  Next
Author Message
 Post subject: Charcoal Script Reworked - UPDATED
PostPosted: Wed Feb 23, 2011 4:06 am  (#1) 
Offline
GimpChat Member

Joined: Oct 06, 2010
Posts: 2658
First of all, this is my very FIRST attempt to actually try to accommodate myself with an existing script, namely the recent charcoal.scm (which me and Rod asked for leaving the original layer and working on a copy at the Registry). I'm sort of glad the author showed indifference because I knew eventually it would push me into trying harder to do it myself. So I did. Took me several hours, but I figured it out.

This script now gives you the ability to leave the original layer (tick new layer toggle) and to max the original layer to the new image size (tick Max original layer toggle) should you tick the Resize for optimum effect toggle.

I've added Saulgoode's suggestion to the script and resubmitted the zipped file. It will no longer require the extend layer script to work.

The Max Original toggle calls up Saulgoode's sg-extend-layer.scm script, so grab that if you don't have it.

http://chiselapp.com/user/saulgoode/rep ... tend-layer


Attachments:
charcoal.scm.zip [2.45 KiB]
Downloaded 153 times

_________________
You cannot do a kindness too soon because you never know how soon it will be too late.

~Ralph Waldo Emerson


Last edited by mahvin on Wed Feb 23, 2011 4:08 pm, edited 2 times in total.
Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Profile  
 
 Post subject: Re: Charcoal Script Reworked
PostPosted: Wed Feb 23, 2011 4:45 am  (#2) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 12052
Location: "Looking for my eraser" =P
Lovely, thanks mahvin.

Image

I think if i were to select all the black in several dif layers i could color it nicely. :)

_________________
Image
____________
OK, . . . . so what's the speed of dark?


Top
 Profile  
 
 Post subject: Re: Charcoal Script Reworked
PostPosted: Wed Feb 23, 2011 10:01 am  (#3) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5873
Do you maybe knows what the script does?
i may see the effect, i mean do you know how does that, which steps automatize ?

_________________
My 3D Gallery on Deviantart http://photocomix2.deviantart.com/
Main gallery http://www.flickriver.com/photos/photocomix-mandala/
Mandala and simmetry http://www.flickriver.com/photos/photocomix_mandala/

Image

Mrs Wilbress


Top
 Profile  
 
 Post subject: Re: Charcoal Script Reworked
PostPosted: Wed Feb 23, 2011 10:32 am  (#4) 
Offline
Administrator
User avatar

Joined: May 22, 2008
Posts: 6559
Location: Somewhere in GIMP
I like having the original image preserved. Nice job, mahvin. :geek

Image

_________________
Image
The real trouble with reality is that there's no background music.
Image


Top
 Profile  
 
 Post subject: Re: Charcoal Script Reworked
PostPosted: Wed Feb 23, 2011 11:07 am  (#5) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5873
great on the tiger !

_________________
My 3D Gallery on Deviantart http://photocomix2.deviantart.com/
Main gallery http://www.flickriver.com/photos/photocomix-mandala/
Mandala and simmetry http://www.flickriver.com/photos/photocomix_mandala/

Image

Mrs Wilbress


Top
 Profile  
 
 Post subject: Re: Charcoal Script Reworked
PostPosted: Wed Feb 23, 2011 2:03 pm  (#6) 
Offline
GimpChat Member

Joined: Feb 06, 2011
Posts: 336
I like this Mahvin. Thanks :)


Attachments:
charcoalHiefers 2005.png
charcoalHiefers 2005.png [ 217.04 KiB | Viewed 2046 times ]
Top
 Profile  
 
 Post subject: Re: Charcoal Script Reworked
PostPosted: Wed Feb 23, 2011 2:23 pm  (#7) 
Offline
Script Coder
User avatar

Joined: Apr 23, 2010
Posts: 1437
Location: not from Guildford after all
mahvin wrote:
The Max Original toggle calls up Saulgoode's sg-extend-layer.scm script, so grab that if you don't have it.

http://chiselapp.com/user/saulgoode/rep ... tend-layer

It appears that whenever your version of the charcoal script calls the Extend Layer script, there is no selection present. If this assessment is accurate, it would be quite easy for your script to rescale the layer by itself, without calling Extend Layer (if there is no selection when Extend Layer is called, the script merely scales the entire layer to match the image size).

    (when (= max-original TRUE)
      (gimp-layer-scale drawable
                        (car (gimp-image-width image))
                        (car (gimp-image-height image))
                        TRUE )
      (gimp-layer-set-offsets drawable 0 0) )

_________________
Animals who are not penguins can only wish they were. :pengy


Top
 Profile  
 
 Post subject: Re: Charcoal Script Reworked
PostPosted: Wed Feb 23, 2011 3:03 pm  (#8) 
Offline
GimpChat Member

Joined: Oct 06, 2010
Posts: 2658
Saulgoode:

Couldn't you then tell it to unselect the image before scaling? I mean, I looked at different ways to make it scale, but wasn't sure what was involved in the procedures. But I knew your script performed the task. So, if I wanted to remove all selections first, then perform the code you have above, would that need to include:

(gimp-selection-none image) - ?

_________________
You cannot do a kindness too soon because you never know how soon it will be too late.

~Ralph Waldo Emerson


Top
 Profile  
 
 Post subject: Re: Charcoal Script Reworked
PostPosted: Wed Feb 23, 2011 3:19 pm  (#9) 
Offline
Script Coder
User avatar

Joined: Apr 23, 2010
Posts: 1437
Location: not from Guildford after all
mahvin wrote:
... So, if I wanted to remove all selections first, then perform the code you have above, would that need to include:

(gimp-selection-none image) - ?

I may have missed something, but from my cursory examination of the (charcoal) script, there doesn't seem to be a selection active* at the time you perform your scaling. Performing a 'gimp-selection-none' would not hurt anything, but I didn't think it necessary (and if it were necessary then I should feel compelled to re-examine my understanding of what is supposed to happen).


* The preceding operations entail a Select By Color, followed by copy and paste. When the paste occurs (creating a floated selection layer), there is no longer any selection present (even though the display may show marching ants around the original selection), and there is still no selection present after this floated layer is anchored.

_________________
Animals who are not penguins can only wish they were. :pengy


Top
 Profile  
 
 Post subject: Re: Charcoal Script Reworked
PostPosted: Wed Feb 23, 2011 4:08 pm  (#10) 
Offline
GimpChat Member
User avatar

Joined: Jul 04, 2010
Posts: 1429
Location: Retired Moderator Slowly Returning to the Living.
When I can, I will try it out! I like the results! If you keep your original color layer, you can experiment with blend modes and see what sweet images you get!

_________________
Artists aren't crazy! We're eccentric! ~G.M. Ross

Image

My Sigs = My Photos
Check out my work at http://www.flickr.com/photos/photomastergreg.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 47 posts ]  Go to page 1, 2, 3, 4, 5  Next

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


Jump to:  

   Similar Topics   Author   Replies   Views   Last post 
No new posts Charcoal Script

in Gimp Scripts and Plugins

Oregonian

8

1021

Tue Feb 22, 2011 9:47 am

PhotoComix View the latest post

No new posts My image from another reworked script-fu

in Gimp Scripts and Plugins

Graechan

5

489

Wed Jun 01, 2011 3:47 pm

Willy View the latest post

No new posts Baptism Card (Reworked) Updated V2

[ Go to page: 1, 2 ]

in Gimp Art

he4rty

14

634

Wed Aug 21, 2013 12:13 pm

YAFU View the latest post

No new posts Attachment(s) Help for expanding a script (Glass Frame Effect Script)

in Gimp Help

dulie

9

550

Sat Jan 31, 2015 11:25 pm

2-ton View the latest post

No new posts Attachment(s) Batch Script for custom Script?

[ Go to page: 1, 2 ]

in Gimp Scripts and Plugins

Lokesh

15

1147

Thu Sep 26, 2013 11:33 pm

Lokesh View the latest post



* Login  

* Subscribe to Gimp Chat's RSS Feed    * Subscribe to Gimp Chat's Tutorial Feed    * Subscribe to Gimp Chat's G'MIC Feed


Powered by phpBB3 © phpBB Group