Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 150706

Re: Need help cleaning up a script and adding loop

$
0
0

you can check if the reminder of the width and height of your document is 0 like this:

var wdth = app.activeDocument.width;

var hght = app.activeDocument.height;

if(wdth % 4 == 0){

  alert("width is divisible by 4");

}else{

     alert("width is not divisible by 4");

}


Viewing all articles
Browse latest Browse all 150706

Trending Articles



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