Re: [Gimp-developer] API to parse a saved GIMP's curves file
- From: Kevin Cozens <kevin ve3syb ca>
- To: gimp-developer <gimp-developer-list gnome org>
- Subject: Re: [Gimp-developer] API to parse a saved GIMP's curves file
- Date: Thu, 26 Sep 2013 10:48:03 -0400
On 13-09-25 05:21 AM, Alessandro Francesconi wrote:
I’m developing a plugin that must read the contents of a GIMP “curves”
file
[snip]
# GIMP curves tool settings
(time 0)
(channel value)
(curve
(curve-type smooth)
(n-points 17)
(points 34 0.000000 0.000000 -1.000000 -1.000000 [other X Y points...])
(n-samples 256)
(samples 256 0.000000 0.012218 [other samples...])
)
Hm... interesting. Someone chose to save the settings in a format that looks
a bit like Scheme code. Unfortunately it isn't Scheme-like enough that you
could use the "load" function in a Script-Fu script to load the curve
settings via a script and use the contents of the file.
The Procedure browser doesn't list any calls for saving or loading curves.
If others thing it would be a worthwhile addition to the API an enhancement
request could be find in bugzilla.
--
Cheers!
Kevin.
http://www.ve3syb.ca/ |"Nerds make the shiny things that distract
Owner of Elecraft K2 #2172 | the mouth-breathers, and that's why we're
| powerful!"
#include <disclaimer/favourite> | --Chris Hardwick
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]