Skip to main content
Inspiring
August 30, 2024
Pregunta

Is there a way to save arrangements within panels per-person?

  • August 30, 2024
  • 2 respuestas
  • 951 visualizaciones

I like to keep my Styles panels' content organized differently than some other people also working on the ID file.

However, the content of the panels (e.g. Styles sorted alphabetically) remain in the order that the last person using them left them in.

 

Is there a way to return a panel to a previous state?

Este tema ha sido cerrado para respuestas.

2 respuestas

Robert at ID-Tasker
Legend
August 31, 2024
jmlevy
Community Expert
Community Expert
August 31, 2024

Do you mean the panel position on your screen or the content order of each panel?

Inspiring
August 31, 2024

The content of the panels. So, for example:

• I have my Paragraph Styles panel arranged by recent use.
• Someone else, at their location, works on the document & sorts the Paragraph Styles panel alphabetically.
• When I open the document again, I'd like my own Paragraph Styles panel to remain arranged in the "recent use" order I last used it.

 

Thanks. Original post updated for clarity.

Robert at ID-Tasker
Legend
August 31, 2024

I'm pretty sure this can't be done — there's no inherent ID setting or feature for it, it's sort of contrary to the model of how styles are managed and I'd be very surprised if there's a hook that a script could use to store and re/store the style lists.

 

But it's a good concept.


It would be doable by script.

 

Returned order of the styles - ParagraphStyles collection of the Document / Application - is the order on the pallet:

(ID in the 2nd column shows creation order)

 

And, as per:

https://www.indesignjs.de/extendscriptAPI/indesign-latest/#ParagraphStyle.html#d1e540046__d1e545770

 

ParagraphStyle move (to:LocationOptions, reference:Varies CellStyle CellStyleGroup CharacterStyle CharacterStyleGroup Document ParagraphStyle ParagraphStyleGroup TableStyle TableStyleGroup Application)

Moves the style to the specified location.

Parameter

Type

Description

to

LocationOptions

LocationOptions.AFTER

LocationOptions.AT_BEGINNING

LocationOptions.AT_END

LocationOptions.BEFORE

LocationOptions.UNKNOWN

The location relative to the reference object or within the containing object.

reference

CellStyle

CellStyleGroup

CharacterStyle

CharacterStyleGroup

Document

ParagraphStyle

ParagraphStyleGroup

TableStyle

TableStyleGroup

Application

The reference object. Note: Required when the to parameter specifies before or after. Can accept: ParagraphStyle, ParagraphStyleGroup, CharacterStyle, CharacterStyleGroup, CellStyle, CellStyleGroup, TableStyle, TableStyleGroup, Document or Application. (Optional)

 

It's a rather general description - so only Paragraph* references should be used in this case.

 

So script could preserve the order and then recreate it - by moving ParaStyles around.