Skip to main content
Inspiring
February 25, 2024
Answered

Make a caption frame style as the default for captions

  • February 25, 2024
  • 3 replies
  • 507 views

Hi

 

 

Dear all,

 

I have a default caption frame style [Caption frame].  When I create static or live captions from the image frame it doesn't use my default and I have to apply the style manually.  I am sure there is a setting somewhere that tells InDesign to use my chosen style rather than its chosen one.  I have, I think, gone through all the various settings but cannot find any options.

 

I am probably missing something obvious so would be gratefull for someone to give me a clue.

 

Many thanks.

 

Ian

This topic has been closed for replies.
Correct answer James Gifford—NitroPress

If you set up a Layer for the captions an object style could be easily applied globally via a script:

 

 

The script:

var d = app.activeDocument;
//expects a Layer named Captions and an Object Style named Caption—ajust names as needed
var tf = d.layers.itemByName("Captions").textFrames.everyItem().appliedObjectStyle = d.objectStyles.itemByName("Caption")

 

Result:

 

 


Not sure I follow this. Yes, IF the caption frames are (manually) moved to another layer, you can apply a global fix, but that separates elements of the feature, which is already cranky about how it's managed. Wouldn't it be equal effort and perhaps more stable to just apply the Object Style to each caption frame? Since a manual step has to be involved?

3 replies

ianhgsyAuthor
Inspiring
February 27, 2024

Thank you to you all for the various suggestions.    I think I am going to stick James' thoughts and continue doing it manually. 

 

Thanks again.

 

Ian

rob day
Community Expert
Community Expert
February 25, 2024

I have a default caption frame style [Caption frame]

 

Hi @ianhgsy , It looks like generated captions always get the [None] Object Style applied. You can use Options>Captions>Captions Setup... to set a Paragraph Style for new captions, and set a destination layer. So a simple script could get all of the captions on the caption layer, and apply any Object Style:

 

 

Steve Werner
Community Expert
Community Expert
February 25, 2024

You want to store your frame style as an object style. 

 

https://helpx.adobe.com/indesign/using/object-styles.html

James Gifford—NitroPress
Legend
February 25, 2024

Object Style is the right answer here, but given the convolutions of the caption feature, where would you automatically attach the style to newly generated caption frames? I can only see a manual assignment as an option — after which, of course, the style could be managed.

ianhgsyAuthor
Inspiring
February 26, 2024

Sadly, I think you are right.