Copy link to clipboard
Copied
I have having trouble getting this text box to rotate.
function addTextF(doc, layer, name){
app.generalPreferences.preventSelectingLockedItems= false;
var myBlendingSettings = { blendMode : BlendMode.NORMAL };
var myTransparencySettings = { blendingSettings : myBlendingSettings };
var tF = doc.textFrames.itemByName(name);
if(tF && tF.isValid) {
tF.remove();
}
var origUnit = app.scriptPreferences.measurementUnit;
app.scriptPreferences.measurementUnit = MeasurementUnits.INCHES;
tF = doc.textFrames.add(layer, LocationOptions.UNKNOWN, {name: name, fillColor :"Paper", fillTint: 100, transparencySettings : myTransparencySettings, geometricBounds: ['.504in','.21in','.376in','-.21in'] });
tF.flipItem(Flip.HORIZONTAL,AnchorPoint.CENTER_ANCHOR);
tF.locked=true;
app.scriptPreferences.measurementUnit = origUnit;
return tF;
}
FROM THIS
TO THIS
Depending on whether tF.flipItem(…) is applied, or not, before the rotation, try either
or
@+
Marc
Copy link to clipboard
Copied
Depending on whether tF.flipItem(…) is applied, or not, before the rotation, try either
or
@+
Marc
Copy link to clipboard
Copied
thank you thank you thank you. i was trying that flip.VERTICAL and all other variants of that.