2 Replies Latest reply on Apr 29, 2015 8:34 AM by BEGINNER_X

    Help in Baseline Concept

    BEGINNER_X Level 3

      Hi All,

       

      1. Using this below code, a slight difference between the baseline (refer screenshot Second box (output:)

      2. But I need as in third box(exactly base line)

       

      Where I am lacking, because I am using geometricbounds concept only.

       

      Please help...

       

      var baseline = app.selection[0].baseline;  
      var obj = app.selection[0].createOutlines();  
      var gb = obj[0].geometricBounds;  
      app.documents[0].undo();  
      var baselineValue = gb[0] - baseline;  
      alert(baselineValue)
      app.selection[0].baselineShift = baselineValue;  
      

       

      Screen Shot 2015-04-29 at 1.16.33 PM.png

      Thanks

      Siraj