-
Scripting Question
I know that this is not strictly a question about expressions, but given that there is no dedicated scripting forum, I reasoned that this would be the most appropriate forum. Apologies if I am mistaken.
I’m curious about editing expression controls within the scripting language, specifically how to change the name of each expression control. Here’s where I’m stuck…
app.project.activeItem.layer(4).effect.addProperty(“Slider Control”);
app.project.activeItem.layer(4).effect.(“Slider Control”).name = “Raise/Lower Arm”;I’ve been pawing through the scripting guide, but I have not been able to find anything about changing an expressions name. I tried this, thinking that it might work, and obviously it didn’t, as I got the following error message:
“Function (predicate expression) cannot work with this class””
What do I need to do to change the name of an expression control using the scripting language?
Thanks for your help!
Nic
app.project.activeItem.layer(4).effect.addProperty("Slider Control");
app.project.activeItem.layer(4).effect.("Slider Control").name = "Raise/Lower Arm";