Dialog Class
Overview
The Dialog Class lets you build custom dialog windows for Panel Actions or the building process. It supports checkboxes, text fields, and dropdown selections. The Panel Action Unlock_Layer_Frames serves as a reference implementation.
How It Works
Unlock_Layer_Frames
Fetches all layers in the document and opens a dialog based on how many layers exist:
- 20 or fewer layers: single-column checkbox list. Multiple layers can be selected.
- 21 to 40 layers: two-column checkbox list. Multiple layers can be selected.
- More than 40 layers: single dropdown with one selection at a time.
After the user confirms the selection, all frames on the chosen layers are unlocked.
Limitations
The dialog feature is limited to InDesign Desktop and is not available in Python.