Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Forums Adobe After Effects Expressions parseInt from EditText field in extendscript

  • parseInt from EditText field in extendscript

  • Avinash Ramanath

    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]);

Viewing 1 of 1 posts

Log in to reply.

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