Quantcast
Channel: Adobe Community : Popular Discussions - Illustrator Scripting
Viewing all articles
Browse latest Browse all 12845

place, trace, expand and stroke - stuck on stroke

$
0
0

I'm trying to write a script to iterate the files in a folder - I need to place, trace, expand and stroke each.

So far, I have the code below working nicely - I can place, trace and expand but can't work out how to add the stroke?

for ( i = 0; i < fileList.length; i++ ) { 

            lay = doc.layers.add();    

            lay.name = fileList[i].name.slice(0, -4);  

            thisPlace = doc.placedItems.add();                           

            thisPlace.file = allFiles[i];                         

            thisImage = thisPlace.trace();                                                                  

            thisImage.tracing.tracingOptions.loadFromPreset( 'myPreset' );  

            var thisTracing = thisImage.tracing.expandTracing();

}

I've edited the script for brevity's sake - everything else is working, I just can't get the stroke. I think the issue I'm having is knowing what object to apply the stroke to.

Any advice would be brilliant.


Viewing all articles
Browse latest Browse all 12845

Trending Articles



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