ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

setValueAtKey integer problem extendscript

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Rainier Raydán
setValueAtKey integer problem extendscript
on Jun 16, 2017 at 1:57:18 am

Hi. Im trying to assing a textbox number to the first parameter of the setValueAtKey method.

var xValue = myPanel.grp.panelThree.setX.text;
var yValue = myPanel.grp.panelThree.setY.text;
var zValue = myPanel.grp.panelThree.setZ.text;
var kValue = myPanel.grp.panelTwo.setK.text;
curItem.layer(1).property("ADBE Transform Group").property("ADBE Scale").setValueAtKey ((kValue), [xValue, yValue, 0]);


when a put this it says "Unable to call setValueAtKey" because of parameter 1. is not an unsigned integer.

the idea is set keyframe number by a textbox in my script UI.

Thanks!


Return to posts index

Dan Ebberts
Re: setValueAtKey integer problem extendscript
on Jun 16, 2017 at 6:41:42 am

It sounds like you need to convert your key number from text to an integer with parseInt(). You probably need to convert your x and y values as well, using parseFloat().

Dan



Return to posts index

Rainier Raydán
Re: setValueAtKey integer problem extendscript
on Jun 16, 2017 at 10:43:46 am

Thanks!


Return to posts index

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