Frame_Is_Empty
Overview
Use this condition to check if the current frame is empty after a placeholder loads. It works for both text frames and image frames. A common use is preventing other layout rules from running when a frame has no content.
How It Works
The condition checks the frame type first and applies different logic for each type.
For text frames: attempts to strip zero-width non-joiner (U+200C) and zero-width space (U+200B) characters before checking length, then returns true if the text is empty.
For image frames: returns true if no image path is set, meaning no image was loaded into the frame.
Reference
No parameters.
Note
We suggest using the Frame is Empty rule delivered by default. It has more functionality and works for Text frames, Multiframe placeholders, and Images.
We kept the Python layout rule in this package so you can see how to approach a similar case and customise it for your project.
