-
Script to change animator settings
Hey!! I’m trying to create a script the adds text layers, until now is running okay and adds text layers but now I want to add animators to those text layers and that’s where it gets stuck. It adds the animator but I’m trying to reach the advanced tab more specifically the mode tab to change it to subtract but is not working.
this is the code I’ve:
var Animator1 = layer.Text.Animators.addProperty(“ADBE Text Animator”);
var A1opacity = Animator1.property(“ADBE Text Animator Properties”).addProperty(“ADBE Text Opacity”);
var A1Selector = Animator1.property(“ADBE Text Selectors”).addProperty(“ADBE Text Selector”)
var EndA1 = A1Selector.property(“ADBE Text Percent Start”);
var ModeA1 = A1Selector.property(“ADBE Text Range Advanced”).property(“ADBE Text Selector Mode”).subtract;
EndA1.setValue(36);
Does anyone know how to set a value that is not a number because I can access the numerical ones just not any of the ones with actual names like ‘based on’, ‘units’ and ‘modes’?
Thanks in advance for all the help 🙂