Re name layer as part of a script
Hi, I am new to writing my own scripts for After Effects. To get my feet wet, I decided to make a simple script that changed the opacity of my layer as well as applied some effects with some predetermined values. As part of the script, I wanted the layer to change name.
I managed to get the script works as far as changing the opacity value and applying the effects as I want them to be applied, but it does not change the name of the layer. This is driving me nuts, as I thought it would be the easiest part to write. I have tried re-writing the script multiple times as well as investigating the reason behind its misbehaving with no success. Weirdly enough, the script does change the name of shape layers, but not any of the other types of layers.
I want to use this script with footage I import.
This is my script, any advice is appreciated. I am After Effects 2023
