🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.photoshop.scripting
Article #390

Re: Save a curves preset via a script

#390
From: xbytor
Date: Tue, 03 Mar 2009 20:25
24 lines
1560 bytes
> Does anyone know of a way to save presets via automation?

Saving presets to disk is generally not the problem, if they are handled by the 
Presets Manager.

Unfortunately, curves aren't and I haven't been able to figure out a way to do 
it either.

Even worse, the Curves data is stored as raw bytes in the ActionDescriptor for 
the adjustment layer.

This leaves two options:
1) When you create a curves layer in the future, have it go through a script 
that captures the settings and generates the acv file at the same time. You'll 
have to construct the acv file yourself in your script.

2) Decode the raw bytes in the layer's descriptor and generate the acv file 
whenever you need it.

Neither option is particularly pleasant so hopefully someone else has something 
figured out.

-X
Technical Details
Message-ID: <9A4616926D17D0C3F338DE48A36F405C@in.webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!newshub.sdsu.edu!webcrossing
References: <59b81a29.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f5839,fbf81dcb10c84f7c
X-Google-Attributes: gidf5839,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: xbytor@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.photoshop.scripting
Subject: Re: Save a curves preset via a script
Message-ID: <9A4616926D17D0C3F338DE48A36F405C@in.webcrossing.la2eafNXanI>
Date: Tue, 3 Mar 2009 12:25:18 -0800
References: <59b81a29.-1@webcrossing.la2eafNXanI>
Lines: 31
User-Agent: Thunderbird 2.0.0.19 (Macintosh/20081209)
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit