1 Reply Latest reply on Sep 2, 2015 4:15 PM by stevenl40999358

    Detect dynamic text field height

    stevenl40999358

      Hi guys,

       

      I am having problem detecting dynamic text field’s height. I have two text fields in the main timeline, 1st text field animate in to the top then the 2nd text field animate in next to it, because the texts are all dynamic, so I need to get the height of the 1st text field.

       

      my code in “compositionReady”

       

      sym.setVariable("txt1_1”, x.frame_1_1);

      sym.setVariable("txt1_2”, x.frame_1_2);

       

      sym.getComposition().getStage().getSymbol('t1_1').$("dTxt").html(sym.getComposition().getS tage().getVariable("txt1_1”));

      sym.getComposition().getStage().getSymbol('t1_2’).$(“dTxt").html(sym.getComposition().getS tage().getVariable("txt1_2”));

       

      console.log(sym.getSymbol('t1_1').$('dTxt').height());

       

      Is there any simple solution for my scenario?

       

      Thanks

      Steve