Applying Live effects (offset path) in Illustrator using AS
Help! Anyone can give me an example how to script (AS) Offset Path in Illustrator?
Thank you.
Help! Anyone can give me an example how to script (AS) Offset Path in Illustrator?
Thank you.
In my AppleScript Debugger I was able to open up a Dictionary and see:
applyeffect
applyeffect (verb)Apply effect to selected artItem (from Adobe Illustrator Suite)
command syntax
applyeffect page item ¬
liveeffectxml text
parameters
|
I guess I just can't leave things alone sometimes, I was able to make this snippet work:
tell application "Adobe Illustrator"
set doc to the first document
set testPath to the first path item of doc
set xmlstring to "<LiveEffect name='Adobe Offset Path'><Dict data='R mlim 4 R ofst 20 I jntp 2 '/></LiveEffect>"
applyeffect testPath liveeffectxml xmlstring
end tell
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.