I just paste this into the console, and run it to create a temporary toolbar button. You could save it into the Javascripts folder if using often:
Code: Select all
// rotate text counterclockwise
app.addToolButton( {
cName: "rotateTextTool",
cLabel: "Rotate Text",
cTooltext: "Rotate just the text CCW",
cEnable: "event.rc = (this.selectedAnnots && this.selectedAnnots.length)",
cExec: "for (let a of this.selectedAnnots) a.rotate += 90" }
);
Code: Select all
cExec: "for (let a of this.selectedAnnots) a.rotate -= 90" }