Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions parseInt from EditText field in extendscript

  • parseInt from EditText field in extendscript

    Posted by Avinash Ramanath on December 14, 2018 at 10:51 am

    Hello All,
    Am unable to get input from a docked script. Please identify the problem for me. Many thanks

    Kindly help

    res = "group{orientation:'column',\
    groupOne: Panel{orientation:'row',\
    button1: Button{text:'R'},\
    button2: Button{text:'AM'},\
    button3: Button{text:'AI'},\
    },\
    groupTwo: Panel{orientation:'row',\
    durButton: EditText{text:'Dur'},\
    button1: Button{text:'UP'},\
    button2: Button{text:'DN'},\
    },\
    groupThree: Group{orientation:'row',\
    button1: Button{text:'Close'},\
    },\
    }";

    //

    var keyframeInterval = parseInt(durButton.text);

    var duration = keyframeInterval;

    myPosition = mainLayer.property("position");

    var positionProp = mainLayer.property("position");
    var positionValue = positionProp.valueAtTime(1, false);
    var posX = positionValue[0];
    var posY = positionValue[1];

    myPosition.setValueAtTime(0,[posX,posY*up]);
    myPosition.setValueAtTime(duration,[posX,posY]);

    Avinash Ramanath replied 5 years, 12 months ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy