Script Examples: Change Rotation
The variable FORMAT is available in the script. This is the top level object containing all the fields in the label template. There is a field called rotation that allows you to change the rotation of the label.
Note: The rotation should be set in 90-degree increments.
var rotation=MAP.getStringValue("/Body/Prompt0001");
if (rotation%90 == 0) {
FORMAT.rotation=rotation;
}