Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Clearing overrides for empty frames or empty cells

Guide ,
Jan 22, 2018 Jan 22, 2018

Hi there,

looks like Indesign doesn't apply the .clearOverrides() method to empty frames or cells.

I'm working on a table whose cell tables overrides needs to be cleared using a script.

I would expect that paragraph style linked to the cell style are cleared too, but they are not.

So I apply .clearOverrides() to the cells, then to the paragraphs.

Unfortunately, empty cells are not caught...

My workaround is to add a space in those empty cells, but I'm sure there is a much proper way to do it...

Thanks

Vinny

TOPICS
Scripting
613
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Explorer , Jan 30, 2018 Jan 30, 2018

Any empty textframe or cell contains nevertheless an insertion point and the .clearOverrides() method can be applied to it, using something like that while selecting the textframe/cell

app.activeDocument.selection[0].insertionPoints[0].clearOverrides();

that can be included in a loop to fix multiple selected textframes or cells depending on how you want to use the script…

Translate
Explorer ,
Jan 30, 2018 Jan 30, 2018

Any empty textframe or cell contains nevertheless an insertion point and the .clearOverrides() method can be applied to it, using something like that while selecting the textframe/cell

app.activeDocument.selection[0].insertionPoints[0].clearOverrides();

that can be included in a loop to fix multiple selected textframes or cells depending on how you want to use the script…

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Feb 01, 2018 Feb 01, 2018
LATEST

Aaaah!

Just perfect! Thanks a lot

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines