2 Replies Latest reply on Mar 2, 2017 5:45 AM by cbishop01

    How can i get this frame to FIll Proportional?

    cbishop01 Level 2

      Just what the description says.  I've tried about 20 different variants i found on this forum but none are working.  Please help.  Thank you.

       

      function addTextF(doc, layer, name){  
       app.generalPreferences.preventSelectingLockedItems= false;
      
              var myBlendingSettings = { blendMode : BlendMode.NORMAL };        
              var myTransparencySettings = { blendingSettings : myBlendingSettings };   
        
              var tFR = doc.textFrames.itemByName(name);  
              if(tFR && tFR.isValid) {        
       tFR.remove();  
              }  
              var origUnit = app.scriptPreferences.measurementUnit;  
       app.scriptPreferences.measurementUnit = MeasurementUnits.INCHES;
          tFR = doc.textFrames.add(layer, LocationOptions.UNKNOWN, {name: name, fillColor :"Paper", fillTint: 100, transparencySettings : myTransparencySettings, geometricBounds: ['.504in','.21in','.376in','-.21in'] });
          tFR.rotationAngle += -90;
          tFR.fit (FitOptions.FILL_PROPORTIONAL); 
       tFR.locked=true;
       app.scriptPreferences.measurementUnit = origUnit;      
                    return tFR;  
                    
          }