Skip to main content
Participant
September 25, 2024
Answered

Using Live Effects Functions for Illustrator (expandAppearance)

  • September 25, 2024
  • 1 reply
  • 213 views

I have been using the excellent live-effect-functions-for-illustrator https://github.com/mark1bean/live-effect-functions-for-illustrator  

Only one small problem: I cannot get Expand Appearance to work. What I am doing wrong here:

 

//@include LE_Functions.js

for (var i = 0; i < app.activeDocument.activeLayer.pathItems.length; i++) {

    LE_OffsetPath(app.activeDocument.activeLayer.pathItems[i], {offset: i*5, expandAppearance: true});    
   
}

@m1b 

This topic has been closed for replies.
Correct answer m1b

Hi @Paul_St_George, thank you! You found a bug in the expandAppearance function, which caused it to fail if the page item wasn't selected. I've fixed now.

- Mark

1 reply

m1b
Community Expert
m1bCommunity ExpertCorrect answer
Community Expert
September 25, 2024

Hi @Paul_St_George, thank you! You found a bug in the expandAppearance function, which caused it to fail if the page item wasn't selected. I've fixed now.

- Mark