Article View: adobe.photoshop.scripting
Article #47moving sequential layers to to corresponding points
From: Pearl_Teeth
Date: Tue, 31 Mar 2009 16:27
Date: Tue, 31 Mar 2009 16:27
18 lines
1438 bytes
1438 bytes
Hi. I'm completely new to scripting and I would appreciate some help. I took a little look at applescript but I can't figure some things out. I've taken a short video, converted the frames to PS layers (all in the same document), and trimmed the whole thing to just the center vertical line 1 pixel wide. I want to now take all of those layers and line them up in order. layer 1 would be at (1,0), layer 2 at (2,0), etc. This is the thing that I made. I think I figured out the gist of it, but I'm getting mixed up in the syntax somewhere. all I'm getting is a "file/folder expected" error. repeat with layernum from 1 to 100 tell application "Adobe Photoshop CS3" activate tell document "scripttry.psd" tell layer layernum translate layer layernum of document "scripttry.psd" delta x pixels layernum end tell end tell end tell end repeat where am I going wrong?
Technical Details
Message-ID:
<59b8766c.-1@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newshub.sdsu.edu!webcrossingShow Full Headers
Complete Article Headers
X-Google-Thread: f5839,cf1d07fb07aa28b7,start X-Google-Attributes: gidf5839,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: Pearl_Teeth@adobeforums.com Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.photoshop.scripting Subject: moving sequential layers to to corresponding points Message-ID: <59b8766c.-1@webcrossing.la2eafNXanI> Date: Tue, 31 Mar 2009 09:27:57 -0700 Lines: 25 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit