2 Replies Latest reply on Feb 23, 2017 5:12 AM by cbishop01

    Having Trouble getting this box to Rotate.

    cbishop01 Level 2

      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

      Screen Shot 2017-02-22 at 9.53.37 AM.png

      TO THIS

      Screen Shot 2017-02-22 at 9.53.35 AM.png