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

Re: Change Spot Colour Opacity Value to Tint Value

$
0
0

you lose your original opacity value if its run as separate scripts.

 

here is how to do it as one script

 

var doc = app.activeDocument; 
//var items = doc.pageItems; // this line states that items is an array of all page Items 
var items = doc.selection; // this line states that items is an array of all selected items 
for(var i = 0; i<items.length;i++){     if(items[i].opacity != 100){         if(items[i].filled === true){            items[i].fillColor.tint = items[i].fillColor.tint*(items[i].opacity/100);        }        if(items[i].stroked === true){            items[i].strokeColor.tint = items[i].strokeColor.tint*(items[i].opacity/100);        }        items[i].opacity = 100;     } 
}

 

 

As for actions losing the script on restart.

CC+ still has the same issue.

very painfull


Viewing all articles
Browse latest Browse all 66447

Trending Articles



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