Page 1 of 1

Test for animated properties

Posted: August 16th, 2005, 5:57 pm
by byronnash
I know how to test to determine if a single property is animated, but is there a way to loop through all the properties on a layer and find the animated ones?

I'm guessing you could reference the properties by index but how can I find out how many properties are on a layer?

Posted: August 17th, 2005, 12:29 pm
by davestewart
Surely you just loop through the properties of the propertyGroup / numProperties an dtest each one, collecting the results in an array?

Posted: August 18th, 2005, 5:22 am
by byronnash
Thanks Dave, I didn't notice the numProperties object in the reference. duh!

So, I would have to run through all the properties in each of the 3 property groups right?

Posted: August 18th, 2005, 3:32 pm
by davestewart
Yeah, pretty much. I wrote some recursive functions a while back to list the properties, but due to how AE handles collections differently from case to case, they almost created as many problems as they solved!

Mind you, it was a while ago, and I was only just getting to grips with the object model, so if I approached it again now I may fare better ;)