Skip to main content
Flowgun
Inspiring
Dec 10, 2025 5:57 PM UTC
Answered

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

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?

sttk3Correct answer
Legend
Dec 12, 2025 8:59 PM UTC

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.

4 replies

Legend
Dec 11, 2025 12:22 AM UTC

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?

Translate
Flowgun
FlowgunAuthor
Inspiring
Dec 12, 2025 4:21 PM UTC

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.

Translate
sttk3Correct answer
Legend
Dec 12, 2025 8:59 PM UTC

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.

Translate