-
How to determine the number of lights in a comp
I am writing a script that wil generate a light if the selected layer is not a light. I’m using addLight, but you can’t generate a light without the two arguments, name and point of interest.
AE generates a new light name based on the number of lights in the comp, and I’d like to do that as well, but as far as I can tell there’s not an easy way to do this. The Brute Force approach would be to iterate through the layers and test for the castShadows attribute, but is there an easier way?
Robert Womack
Creative Bridgekeep
http://www.CurrentMarketing.com
“Louisville’s Leading Interactive Marketing Agency”