Skip to main content
Flowgun
Inspiring
December 10, 2025
Answered

Script to check if we have live effects applied to selected element?

  • December 10, 2025
  • 1 reply
  • 261 views

Hello,
the title says it all. I'm looking for a way to check if a selected object has live effects or not, to process it differently depending on the case.
is that possible via scripting?

Correct answer sttk3

In that case, it might be possible to achieve this by checking for side effects such as whether expanding the appearance generates a raster image, or whether the difference between geometricBounds and visibleBounds is large enough that it cannot be explained by stroke width.

1 reply

Legend
December 11, 2025

This requires a more detailed description of the use case.

In a broad sense, Live Effects (Appearance) exist on all objects. What specific live effect are you trying to detect?

Flowgun
FlowgunAuthor
Inspiring
December 12, 2025

as an example, I'm trying to detect Gaussian Blur. if an item doesn't have it, I would crop it with a copy of the element underneath it, but if it has gaussian blur, I would place it inside a clipping mask instead. but my script might need to check for other special appearances too.

sttk3Correct answer
Legend
December 12, 2025

In that case, it might be possible to achieve this by checking for side effects such as whether expanding the appearance generates a raster image, or whether the difference between geometricBounds and visibleBounds is large enough that it cannot be explained by stroke width.