-
scripting question…
i have a comp that im wokring with that id like to script the following.
i have many layers lets call them, layer1, layer1_active, layer2, layer2_active, layer3, layer3_active, etc.
im trying to write a script that when i select a layer, lets say layer1, i can run the script that for this example would apply some opacity keyframes, say, 100% 5 frames b4 the current time, 50% at the current time, 50% 5 frames later, etc.
i understand the setValuesAtTimes, i just dont know how to get the current time to be a variable.how do i get the current comp time in the script?
and then second.
say the selected layer is layer1, then apply keyframes in a similayer manner to the layer1_active, ie the another layer that has the selecteds name plus a suffix?
any ideas?