newsdev / ai2html

A script for Adobe Illustrator that converts your Illustrator artwork into an html page.
http://ai2html.org
Other
898 stars 146 forks source link

Incorrect behavior when editing opacity mask #61

Closed dwtkns closed 7 years ago

dwtkns commented 7 years ago

If you run ai2html while editing an opacity mask, the script behaves as though the contents of the mask is the graphic: ai2html creates a new settings block (within the mask), ignoring any that are in the "wider world" of the ai file outside the mask. If you run the script again, it renders the mask as your graphic.

This meshes intuitively with how AI itself handles edits to opacity masks: while you're in "Opacity Mask" edit mode, your layers panel is replaced with the objects that exist within the mask you're editing.

Hopefully there's a way to check whether the user is editing an opacity mask when the script is run. This problem is similar to #35, relating to isolation mode.

mbloch commented 7 years ago

Added a check for this.