Skip to main content
dublove
Legend
March 5, 2025
Question

Is it possible to generate static captions for all diagrams that have the AA object style applied?

  • March 5, 2025
  • 3 replies
  • 658 views

Is it possible to generate static captions for all diagrams that have the AA object style applied? And apply BB object style for caption.

 

Sometimes the client's information is very messy, I always organize, categorize and sort the images first.
Do simple layout design and then generate captions one by one. This saves repeated adjustments to the text.

 

Is there any way to generate all the captions at once, and then apply object styles to the captions?

Thanks

3 replies

Robert at ID-Tasker
Legend
March 8, 2025

@dublove

 

All at once - but you can only set ParaStyle:

 

https://www.montilladesign.com/post/learn-how-to-generate-static-captions-in-adobe-indesign-layouts

 

But if you really need an ObjStyle to be applied - a simple JS script can find all texts with ParaStyle you've selected, then apply your ObjectStyle to the parentTextFrame[0].

 

dublove
dubloveAuthor
Legend
March 9, 2025

How to realize it?
Very much looking forward to it.

dublove
dubloveAuthor
Legend
March 14, 2025

What's new.

Dave Creamer of IDEAS
Community Expert
Community Expert
March 8, 2025

Here's what I've done in the past...

Create a image frame, format with Frame Fitting Options, and create an Object Style.

Add captions for the images in the XMP area in Adobe Bridge. (Good job for an editor with a free version of Creative Cloud.)

Create a text variable linked to the XMP caption.

Create a text frame and insert the text variable. 

When the frame touches the image frame, the variable will show up. (I used text frame insets to move the text away from the image edge.)

I added an empty image frame and text frame with the variable to an InDesign library. 

Just dragged it out when needed.

 

You can do something similar: add the captions in Bridge, create the variable, and create the text frame with variable. Alt/Opt drag copies as needed.

 

David Creamer: Community Expert (ACI and ACE 1995-2023)
Community Expert
March 8, 2025

I suspect there's more to your story here. 

 

Can you share more details - as usual the more we know about your issues the more the answer grows 😄 

Are your diagrams placed image files, or are they created directly in InDesign using shapes and lines? 


Experiment with Built-in Captions (if applicable): If you are using placed images, try adapting InDesign's built-in caption feature.

See if it can be made to work for your needs with metadata and text style application.

https://helpx.adobe.com/indesign/using/captions.html


If built-in captions are insufficient, maybe can be done with InDesign scripting.

  • Select objects by object style.
  • Create text frames.
  • Position objects relative to each other.
  • Apply text styles and object styles.

 

 

But let us know what exactly you're doing, what's not working and why it's not working, and your exact needs so we can better help you.

 

Thanks

 

dublove
dubloveAuthor
Legend
March 8, 2025

Attachments available