It is currently Sat Jul 06, 2024 7:34 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 44 posts ]  Go to page 1, 2, 3  Next
Author Message
 Post subject: to fellow script coders.
PostPosted: Sun Sep 20, 2015 12:32 pm  (#1) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 4003
Location: Canada
Are you ever in a mood or have the urge to write (I usually do a lot of cutting and pasting) a scheme script?
I am having that mood right now..but have no idea what to write hehehe.
It's a strong urge right now though almost like a hunger.

I just wish i had something to write like not too easy, but not too difficult either.

_________________
TinT


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: to fellow script coders.
PostPosted: Sun Sep 20, 2015 12:42 pm  (#2) 
Offline
Script Coder
User avatar

Joined: Dec 27, 2014
Posts: 508
Now you come to mention it..
There was a new user on gimpforums.com asking for a camera shutter transition effect to use in between video sequences.
A quick search revealed this old tute on gimptalk:
http://www.gimptalk.com/index.php?/topi ... iris-tute/
But I reckon that could be done better (and with lots more styles and options) in a good script.
Just a thought.


Top
 Post subject: Re: to fellow script coders.
PostPosted: Sun Sep 20, 2015 1:04 pm  (#3) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 4003
Location: Canada
maybe i'll save that for a keener day :hehe
I don't feel that keen right now.

_________________
TinT


Top
 Post subject: Re: to fellow script coders.
PostPosted: Sun Sep 20, 2015 4:11 pm  (#4) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4756
trandoductin wrote:
Are you ever in a mood or have the urge to write (I usually do a lot of cutting and pasting) a scheme script?


My family has instructions to kill me on the spot if this ever happens.

But a Python script, yes... in fact I thought about a script all weekend. But then I convinced myself that the math was against me, the script was not workable.

_________________
Image


Top
 Post subject: Re: to fellow script coders.
PostPosted: Sun Sep 20, 2015 4:53 pm  (#5) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 4003
Location: Canada
ofnuts wrote:
My family has instructions to kill me on the spot if this ever happens.

:hehe

_________________
TinT


Top
 Post subject: Re: to fellow script coders.
PostPosted: Mon Sep 21, 2015 6:58 am  (#6) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Quote:
My family has instructions to kill me on the spot if this ever happens.


:) :lol

How about a really nice lens flare script?

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: to fellow script coders.
PostPosted: Mon Sep 21, 2015 8:52 pm  (#7) 
Offline
GimpChat Member
User avatar

Joined: Apr 08, 2010
Posts: 5420
Location: Northwest Ohio
Oh yes, lens flares with slider bars for lots of parameters!


Top
 Post subject: Re: to fellow script coders.
PostPosted: Mon Sep 21, 2015 10:26 pm  (#8) 
Offline
GimpChat Member
User avatar

Joined: Feb 14, 2012
Posts: 426
There's this thing that I do all the time that I wish could be made into a script.

1. I start with a pen line.
2. Go into Quick Mask and invert it so that the red is gone.
3. Select Default black foreground.
4. go to [Edit] [stroke path] no antialiasing line width of 1
5. Select the red line and use [Select] [Border] on it and change the pixels to any number that suits me and use feather boarder. (this gives me a nice even increase in pixels from red in the middle to opaque around the sides after I paist in the foreground color to it).
6. Then I use a saved curve on the quick mask canvas to make the increase in pixels go rounded from opaque to red (kind of rounded inward to a sharp peak.
7. Then I invert the quick mask and exit.

I use these kinds of selections along with the airbrush tool to put creases into colors etc. Like in this image, I used it on the fingers and elbows etc.


Attachments:
Creases.png
Creases.png [ 187.7 KiB | Viewed 2061 times ]
Top
 Post subject: Re: to fellow script coders.
PostPosted: Mon Sep 21, 2015 10:51 pm  (#9) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 4003
Location: Canada
PegLeg44 wrote:
There's this thing that I do all the time that I wish could be made into a script.

1. I start with a pen line.
2. Go into Quick Mask and invert it so that the red is gone.
3. Select Default black foreground.
4. go to [Edit] [stroke path] no antialiasing line width of 1
5. Select the red line and use [Select] [Border] on it and change the pixels to any number that suits me and use feather boarder. (this gives me a nice even increase in pixels from red in the middle to opaque around the sides after I paist in the foreground color to it).
6. Then I use a saved curve on the quick mask canvas to make the increase in pixels go rounded from opaque to red (kind of rounded inward to a sharp peak.
7. Then I invert the quick mask and exit.

I use these kinds of selections along with the airbrush tool to put creases into colors etc. Like in this image, I used it on the fingers and elbows etc.


I don't know enough to even perform these steps myself.

_________________
TinT


Top
 Post subject: Re: to fellow script coders.
PostPosted: Tue Sep 22, 2015 8:54 am  (#10) 
Offline
GimpChat Member
User avatar

Joined: Feb 14, 2012
Posts: 426
It's all done to make a sharp edged selection which I then use as a mask to lighten up or create creases using the air brush. I could try to explain it step by step with images.


Top
 Post subject: Re: to fellow script coders.
PostPosted: Tue Sep 22, 2015 11:34 am  (#11) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 4003
Location: Canada
PegLeg44 wrote:
It's all done to make a sharp edged selection which I then use as a mask to lighten up or create creases using the air brush. I could try to explain it step by step with images.

yeah that would help, if you can help me understand step by step and i can do it manually myself,
that would help in writing the script :hehe

_________________
TinT


Top
 Post subject: Re: to fellow script coders.
PostPosted: Tue Sep 22, 2015 9:28 pm  (#12) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 4003
Location: Canada
can't wait to see explaination with images so i can get started. :)

_________________
TinT


Top
 Post subject: Re: to fellow script coders.
PostPosted: Tue Sep 22, 2015 9:56 pm  (#13) 
Offline
GimpChat Member
User avatar

Joined: Feb 14, 2012
Posts: 426
I'll put something together tomorrow. Kind of late right now.


Top
 Post subject: Re: to fellow script coders.
PostPosted: Tue Sep 22, 2015 10:23 pm  (#14) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 4003
Location: Canada
okay :(

_________________
TinT


Top
 Post subject: Re: to fellow script coders.
PostPosted: Wed Sep 23, 2015 9:05 am  (#15) 
Offline
GimpChat Member
User avatar

Joined: Feb 14, 2012
Posts: 426
If this script is possible maybe it would be easier to have the script use a layer instead of quick mask like this:

1. Here's the path that I want to turn into a sharp selection:
Attachment:
Sharp1.png
Sharp1.png [ 22.57 KiB | Viewed 1182 times ]


2. Create a new white layer:
Attachment:
Sharp2.png
Sharp2.png [ 44.55 KiB | Viewed 1182 times ]


3. Stroke the path with no antialiasing and a line width of 1px:
Attachment:
Sharp3.png
Sharp3.png [ 64.46 KiB | Viewed 1182 times ]


Top
 Post subject: Re: to fellow script coders.
PostPosted: Wed Sep 23, 2015 9:06 am  (#16) 
Offline
GimpChat Member
User avatar

Joined: Feb 14, 2012
Posts: 426
4. Color Menu [Color to Alpha]:
Attachment:
Sharp4.png
Sharp4.png [ 56.16 KiB | Viewed 1182 times ]


5. Layer Menu [Transparency] [Alpha to Selection]:
Attachment:
Sharp5.png
Sharp5.png [ 62.06 KiB | Viewed 1182 times ]


6. [Selection] [Border] This needs to be interactive:
Attachment:
Sharp6.png
Sharp6.png [ 55.51 KiB | Viewed 1182 times ]


Top
 Post subject: Re: to fellow script coders.
PostPosted: Wed Sep 23, 2015 9:08 am  (#17) 
Offline
GimpChat Member
User avatar

Joined: Feb 14, 2012
Posts: 426
7. Delete the active layer and create a new white layer:
Attachment:
Sharp7.png
Sharp7.png [ 41.04 KiB | Viewed 1182 times ]


8. Then paste in the default black forground color [Edit] [Fill with FG Color] (maybe the script can do a "D" foreground black background white first):
Attachment:
Sharp8.png
Sharp8.png [ 78.38 KiB | Viewed 1182 times ]


9. Unselect all [Ctrl+A].

10. Do a Curves function with a saved preset curve like this one to make the color sharp to a point of black:
Attachment:
Sharp9.png
Sharp9.png [ 101.5 KiB | Viewed 1182 times ]


11. Then do a color to alpha [Colors] [Color to Alpha].

12. Then a [Layer] [Transparency] [Alpha to Selection].


Top
 Post subject: Re: to fellow script coders.
PostPosted: Wed Sep 23, 2015 9:08 am  (#18) 
Offline
GimpChat Member
User avatar

Joined: Feb 14, 2012
Posts: 426
13. Then just delete the layer and your left with a sharp selection mask that can be used to draw creases etc.
Attachment:
Sharp92.png
Sharp92.png [ 44.81 KiB | Viewed 1182 times ]


Top
 Post subject: Re: to fellow script coders.
PostPosted: Wed Sep 23, 2015 9:51 am  (#19) 
Offline
GimpChat Member
User avatar

Joined: Feb 14, 2012
Posts: 426
I've just found that if you can use the quick mask in the script it would cut down the number of steps signigficantly.

1. Start with a path and go to quick mask mode and turn the forground color to white [ "D" then "X"] and then perform a Stroke Path on it with no antialiasing and 1px:
Attachment:
quick2.png
quick2.png [ 227.23 KiB | Viewed 1179 times ]


2. Go out of Quick Mask and perform the [Select] [Border] function on it which would need to be interactive:
Attachment:
quick3.png
quick3.png [ 221.3 KiB | Viewed 1179 times ]


3. Then go back into quick mask mode and perform the curves function on it to make it sharp:
Attachment:
quick4.png
quick4.png [ 243.18 KiB | Viewed 1179 times ]


4. Then just exit quick mask mode and you have a selection ready to go.


Top
 Post subject: Re: to fellow script coders.
PostPosted: Wed Sep 23, 2015 11:42 am  (#20) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 4003
Location: Canada
i am trying to do your 1st method manually and was confused about step 13.
after i do alpha to selection and deleted i am left with this.
Image

is that right or did i miss something.

_________________
TinT


Top
Post new topic Reply to topic  [ 44 posts ]  Go to page 1, 2, 3  Next

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) Looking for Script Coder to make Script of my VHS effect

2

No new posts Attachment(s) Cannot run test script-fu script via console

7

No new posts Attachment(s) A liitle Start Help with a Script-Fu Script

3

No new posts Attachment(s) Script-fu

6

No new posts Attachment(s) Script request

3



* Login  



Powered by phpBB3 © phpBB Group