Skip to main content
Known Participant
Jul 22, 2024 1:34 PM UTC
Question

Can a script do this?

Can a script convert a line to a shape?

This topic is closed to new replies. Start a new post to keep the conversation going.

8 replies

Robert at ID-Tasker
Legend
Jul 23, 2024 8:51 AM UTC

 

Can a script convert a line to a shape?


By @Mendi M

 

Do you mean Convert to Curves / Outline - Text line?

 

Or Graphic line - to what kind of a shape?

 

Or something else?

 

Translate
Mendi MAuthor
Known Participant
Jul 23, 2024 3:54 PM UTC

Hi, 

I meant like Expand in Illustrator

example: > >

 

Translate
Robert at ID-Tasker
Legend
Jul 23, 2024 4:19 PM UTC
quote

Hi, 

I meant like Expand in Illustrator

example: > >

By @Mendi M

 

Something like that - easy:

1) create "outside" circle,

2) create "inside" circle,

3) subtract.

 

But if you have something more complicated - you need to show it first - it might be possible.

 

Translate
Community Expert
Jul 23, 2024 8:05 AM UTC

Hi @Mendi M ,

do you want some hints how to do this?
Or is a "yes" enough so that I can give Peter Kahrel's reply the "Correct Answer" status?

 

Regards,
Uwe Laubender
( Adobe Community Expert )

Translate
Mendi MAuthor
Known Participant
Jul 23, 2024 3:58 PM UTC

Hi thanks!

This is a good question...
I'm not an expert enough, I encounter this need from time to time, and I haven't found a script for it.
The solution I did and heard is to use Illustrator...

 

In fact for an answer:
I would love to hear if it is a complex script or a number of simple commands?

Translate
Community Expert
Jul 23, 2024 4:28 PM UTC

Hi @Mendi M ,

it's not done straight forward. But it's doable.

In fact, Olav Martin Kvern did one about ten years ago and it should still work.

It's exploiting the text wrap feature of InDesign where one could define a custom path for wrapping text. Let's see if we can still find the script named OffsetPath.jsx.

 

It was part of Ole's CAD scripts suite. Ah, found it:

https://www.siliconpublishing.com/blog/free-indesign-scripts/

 

Hm. For your purpose you will run it perhaps two times on the same object to get the outer path and the other time to get the inner path and then use InDesign's pathfinder tool to create the desired object.

 

Just test OffsetPath.jsx and let us know how it goes.

 

Regards,
Uwe Laubender
( Adobe Community Expert )

 

Translate
Peter Kahrel
Community Expert
Community Expert
Jul 22, 2024 1:56 PM UTC

Yes.

Translate