It is currently Sat Apr 20, 2024 8:45 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Apply Curve Plugin (applies a curve from an exported curve file)
PostPosted: Tue May 10, 2016 2:40 pm  (#1) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 3975
Location: Canada
You can export settings of a Color Curves Settings to a file by:
clicking top right little arrow then choose Export Settings to File...
Image
then save it as a file under Gimps/curves folder.
You can then import this file whenever you want to load up those same Color Curves settings.
This python plugin will allow you to select an exported curve file as input and apply it to the currently active layer/or selection.

It'll be availabe under Filters/Apply Curve... (just extract the zip it and toss it in your Gimp's plug-ins folder)
Attachment:
apply_curve.zip [1.33 KiB]
Downloaded 373 times

((searchable text: apply_curve.zip of apply_curve.py)

This came about because currently, I couldn't find away to apply a saved preset curves settings from Script-Fu. So i hunted for code on the internet and found some code written by Raymond Ostertag for batch processing curves on a whole set of images (https://github.com/alessandrofrancesconi/gimp-plugin-bimp/issues/83). So i extract some of his code and made this .py file.

Now people like myself can have access to applying an exported curve file from script-fu by calling
(python-fu-apply-curve 1 image layer curvefilename)

the 1 just indicates that it runs NON-INTERACTIVE

Here's a sample .scm file that calls python-fu-apply-curve.
Attachment:
apply_curve.scm [2.02 KiB]
Downloaded 312 times

(searchable text: apply_curve.scm)

_________________
TinT


Last edited by trandoductin on Tue May 10, 2016 11:04 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
 Post subject: Re: Apply Curve Plugin (applies a curve from an exported curve file)
PostPosted: Tue May 10, 2016 2:54 pm  (#2) 
Offline
Script Coder
User avatar

Joined: Jun 22, 2010
Posts: 1171
Location: Here and there
I thought this problem sounded familiar: http://www.gimptalk.com/index.php?/topi ... it-curves/

Nice to see it done in Python though.

Kevin


Top
 Post subject: Re: Apply Curve Plugin (applies a curve from an exported curve file)
PostPosted: Tue May 10, 2016 3:01 pm  (#3) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 3975
Location: Canada
paynekj wrote:
I thought this problem sounded familiar: http://www.gimptalk.com/index.php?/topi ... it-curves/

Nice to see it done in Python though.

Kevin

Only because i found code in Python... I really don't like the fact that everything time you change anything that has to do with the registration of a python script that you have to restart Gimp... if only there was a refresh similarly to scheme scripts i would then do python more often :D

_________________
TinT


Top
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Plugin or Script to bend/curve text

17

No new posts Script-fu Curve Bend

4

No new posts Attachment(s) Shift-Click lines to curve.

9

No new posts Attachment(s) Curve Bend (warping text)

6

No new posts Attachment(s) Double Curve Bend using paths/vectors

6



* Login  



Powered by phpBB3 © phpBB Group