Thread View: adobe.photoshop.scripting
4 messages
4 total messages
Started by AlbertS.
Thu, 19 Mar 2009 01:35
Moving a Layer based on percentages via action scripting.
Author: AlbertS.
Date: Thu, 19 Mar 2009 01:35
Date: Thu, 19 Mar 2009 01:35
5 lines
821 bytes
821 bytes
Hi, I am trying to create an action script that will move a layer 90% to the left or right. Can this be done thru actions or is it something that can only be done via JS Scripting. The reason I need percentages is not all images are the same dimensions. TIA
Re: Moving a Layer based on percentages via action scripting.
Author: 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
Re: Moving a Layer based on percentages via action scripting.
Author: AlbertS.
Date: Thu, 19 Mar 2009 20:45
Date: Thu, 19 Mar 2009 20:45
1 lines
664 bytes
664 bytes
Thank you, I will try that.
Re: Moving a Layer based on percentages via action scripting.
Author: AlbertS.
Date: Thu, 19 Mar 2009 23:59
Date: Thu, 19 Mar 2009 23:59
1 lines
638 bytes
638 bytes
That worked great, Thanks again.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads