ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

parseInt from EditText field in extendscript

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Avinash Ramanath
parseInt from EditText field in extendscript
on Dec 14, 2018 at 10:51:25 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]);


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2019 CreativeCOW.net All Rights Reserved
[TOP]