Question
convert a selected shape in text path...
Hi,
here is my code JS :
var docRef = activeDocument;
var lineRef = docRef.selection;
if ( activeDocument.selection.length > 0 ) {
var v = prompt("Saisissez votre texte...", "texte sur tracé");
var lineRef = activeDocument.pathItems[0];
var pathTextRef = activeDocument.textFrames.pathText(lineRef);
docRef.textFrames[0].contents = v;
docRef.textFrames[0].textRange.characterAttributes.size = 30;
docRef.textFrames[0].paragraphs[0].paragraphAttributes.justification = Justification.CENTER;
}
else {
alert( "Il faut sélectionner un tracé avant de lancer le script !" );
}
That's run But it's not the selected shape on my document who is converted in textpath
Thanks
JP
here is my code JS :
var docRef = activeDocument;
var lineRef = docRef.selection;
if ( activeDocument.selection.length > 0 ) {
var v = prompt("Saisissez votre texte...", "texte sur tracé");
var lineRef = activeDocument.pathItems[0];
var pathTextRef = activeDocument.textFrames.pathText(lineRef);
docRef.textFrames[0].contents = v;
docRef.textFrames[0].textRange.characterAttributes.size = 30;
docRef.textFrames[0].paragraphs[0].paragraphAttributes.justification = Justification.CENTER;
}
else {
alert( "Il faut sélectionner un tracé avant de lancer le script !" );
}
That's run But it's not the selected shape on my document who is converted in textpath
Thanks
JP
