Skip navigation
Currently Being Moderated

Moving a Layer based on percentages via action scripting.

Mar 18, 2009 5:35 PM

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
 
Replies
  • Currently Being Moderated
    Mar 18, 2009 7:48 PM   in reply to Albert S.
    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
     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)