Article View: adobe.photoshop.scripting
Article #207Re: Moving a Layer based on percentages via action scripting.
From: Michael_L_Hale
Date: Thu, 19 Mar 2009 03:48
Date: Thu, 19 Mar 2009 03:48
5 lines
1119 bytes
1119 bytes
You should be able to do it with either. With an action set you ruler to percent, select all on the layer you want to move and with the move tool move the image. The amount of the move will be recorded in percent. With a script use activeDocument.activeLayer.translate( new UnitValue(.9,'%'),undefined) to move to the right or activeDocument.activeLayer.translate( new UnitValue(-.9,'%'),undefined)to move to the left
Technical Details
Message-ID:
<59b85601.0@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!newshub.sdsu.edu!webcrossingReferences:
<59b85601.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f5839,ec27b37c859179bd X-Google-Attributes: gidf5839,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: Michael_L_Hale@adobeforums.com Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.photoshop.scripting Subject: Re: Moving a Layer based on percentages via action scripting. Message-ID: <59b85601.0@webcrossing.la2eafNXanI> Date: Wed, 18 Mar 2009 20:48:37 -0700 References: <59b85601.-1@webcrossing.la2eafNXanI> Lines: 9 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit