Quantcast
Channel: Adobe Community : Discussion List - Illustrator Scripting
Viewing all articles
Browse latest Browse all 3671

Applying Style Effects with vba script

$
0
0

Hello,

 

I've been doing a lot of scripting with VBA to create data driven graphics with good results so far.

 

Now I want to try and fancy things up a bit. For example I'm trying to add an Effect to an object.

 

As example, I create a simple filled rectangle with the following:

 

Set objRectangle = docRef.PathItems.Rectangle(x, y, w, h)

objRectangle.FillColor = rgbColorRef

objRectangle.Stroked = False

objRectangle.Filled = True

 

After I want to apply an effect equivalent to selecting Effect > Stylize > Scribble... from the menus in Illustrator.

 

I found PathItem.ApplyEffect (LiveEffectXML As String) but not sure this is correct approach. Can't find any documentation or examples on this or reference for the LiveEffectXML string.

 

Sure would appreciate some help if anyone has done this.

Thanks

 

Paul

 

PS I'm using CS6


Viewing all articles
Browse latest Browse all 3671


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