I've been getting into AE scripting recently and ran into a point of confusion. I've read through basically every piece of documentation I could get my hands on, and looked at several examples, but couldn't find an answer more elegant than the one I settled on.
Basically I want to copy all the contents of my_source_layer.Effects to my_target_layer.Effects. Same with Masks. Current solution is stupid (pseudocode follows):
Essentially assigning the entire effects (or Mask) parade from the source to the target. Obviously, properties are largely unassignable but I feel like there's an obvious way that's similar to the above that I'm missing, and processing hundreds of layers, each with 4 - 5 effects takes time and makes the script itself kinda unwieldy. Thoughts?