Skip to main content
Inspiring
October 15, 2010
Answered

[JS] Anchor object to overset text

  • October 15, 2010
  • 2 replies
  • 867 views

Is there any way to anchor a graphicLine or textFrame to overset text without using app.cut() and app.paste()?

This topic has been closed for replies.
Correct answer Harbs.

You can create it inline in a dummy story which isn't overset and then use move()

Harbs

2 replies

Harbs.
Legend
October 15, 2010

you can move() the parent (character) of the anchored object.

Harbs

Inspiring
October 15, 2010

I wasn't clear enough. I have an existing textFrame or graphicLine that is not anchored and I would like to anchor it to text that is overset. The reason is because I need to set the geometricBounds, so I was thinking I could set it and then anchor it, but I don't see any way except for app.cut().

Ah, I see now Harbs did give a solution. First anchor it to the begining of the story and then move it to the overset insertionPoint. Perfect!

Harbs.
Harbs.Correct answer
Legend
October 15, 2010

You can create it inline in a dummy story which isn't overset and then use move()

Harbs

Peter Kahrel
Community Expert
Community Expert
October 15, 2010

If you have an overset story myStory, then this:

myStory.insertionPoint[-1].textFrames.add();

add an anchored frame at the end of the story.

Peter