Skip to main content
Participant
January 23, 2025
Question

I’m working on a JSX script to replicate a specific object

  • January 23, 2025
  • 2 replies
  • 101 views

Hi! I’m working on a JSX script to replicate a specific object, and I’m having trouble understanding the dependencies between TextFrame and Oval objects.

What I’m trying to achieve is something similar to creating shape-bound text in Illustrator: for example, putting text inside a circle or oval shape. In Illustrator, this is usually done by drawing the shape (e.g., a circle) and then using the text tool to add text inside it.

I want to replicate this in code but I’m not sure how to handle the relationship between the TextFrame and the Oval objects. How can I achieve this effect in a JSX script?

 

 

Thanks!

Best Regard,

Amy

2 replies

amy_2109Author
Participant
January 24, 2025

Hello,

 

some form of graphical content, and i want to adjust the content type after creating an oval shape.

 

Best Regard,

Redhumana grupo éxito

Robert at ID-Tasker
Legend
January 23, 2025

After you create your oval - you need to change its contentType: 

 

https://www.indesignjs.de/extendscriptAPI/indesign-latest/#ContentType.html#d1e83837