Answered
Using Javascript to add text to a circular path
I've tried arguing with chatGPT about this to no avail. Does anyone know if it is possible to add text to an elliptical path in a Javascript function?
I've tried arguing with chatGPT about this to no avail. Does anyone know if it is possible to add text to an elliptical path in a Javascript function?
Try this out.
var doc = app.activeDocument;
var ellipse = doc.pathItems.ellipse(0, 0, 360, 360);
var textFrame = doc.textFrames.pathText(ellipse);
textFrame.contents = "This is text on a path!";
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.