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

Re: Need a script for paths and clipping paths

$
0
0

amazingman2000 wrote:

 

... I ran two separate scripts because I don't know how to combine them into one.

A simple way to combine the two scripts would be adding the if statement to the first script's paths loop.

 

for( var p = 0; p < numberOfPaths; p++ )

     { 
          if( doc.pathItems[ p ].kind == PathKind.NORMALPATH && newPathName !=  doc.pathItems[ p ].name ) doc.pathItems[ p ].name =  newPathName;

          if( doc.pathItems[ p ].kind == PathKind.CLIPPINGPATH && newPathName != doc.pathItems[ p ].name ) doc.pathItems[ p ].name = newPathName;

     }


Viewing all articles
Browse latest Browse all 82585

Trending Articles



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