-
AE Script: How do you retrieve a new value for a script?
I’m new to After Effects scripting and am about 80% done my first script. I’m trying to retrieve a new value the user sets for the 2nd part of the script to work properly.
Part one is establishing the script UI.
By default, in the script I set x position to be 10. When the script UI is launched, x = 10 and 10 is editable. Let’s say the user now enters 250 instead of 10, so now it’s x = 250. Now the user clicks “GO”.Part two is creating a new control layer.
After “GO” is clicked, a new solid/”controller” layer is created with the Controller effect set in place. I’m using Pseudo Effect Maker to help establish this Controller effect. Within the Controller effect I have an x position. Currently, x shows up as 10. What bit of code do I have to do to set it to be 250?Currently I have:
var controllerLayer = app.project.activeItem;
var effect = controllerLayer.layer(selectedLayer[0].name+" Controller").property("ADBE Effect Parade").property("Pseudo/PSE Effect Name");
alert(effect.property("Pseudo/PSE Effect Name-0014").value);The alert displays “10”. Is there a method to retrieve the new value the user entered so the alert can say “250”?
Thanks for the help!