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

Re: Scripted Warp (transform)

$
0
0

I don't have CS2, so I can't try this, but at least on CS6, CC runs ok.

 

It checks if the active layer is not background and it is a normal pixel layer (avoiding errors)

Then it runs inside a try...catch (this avoids the error that occurs when we don't use any warp and only apply it.

 

if (!app.activeDocument.activeLayer.isBackgroundLayer && app.activeDocument.activeLayer.kind == LayerKind.NORMAL) {    try{        app.runMenuItem(stringIDToTypeID('warp'));    }catch(e){}
}

Viewing all articles
Browse latest Browse all 27456

Trending Articles



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