Quantcast
Channel: Adobe Community: Message List - Photoshop Scripting
Viewing all articles
Browse latest Browse all 27456

Re: general photoshop error translating layer

$
0
0

In addition to the Michael L Hale message #1:

 

You can do something like this:

 

var aLayer = activeDocument.activeLayer;if (
aLayer.kind == LayerKind.NORMAL ||
aLayer.kind == LayerKind.TEXT||
aLayer.kind == LayerKind.SMARTOBJECT) {    aLayer.isBackgroundLayer = false; // change the background layer to layer    aLayer.allLocked = false;    aLayer.visible = true;    aLayer.translate(new UnitValue(200, "px"), new UnitValue(200, "px"));}

Viewing all articles
Browse latest Browse all 27456

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>