Test for animated properties

Find out why the . goes before the /

Moderator: Paul Tuersley

Post Reply
byronnash
Posts: 321
Joined: July 7th, 2004, 2:30 pm
Location: Charlotte, NC
Contact:

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?
davestewart
Posts: 114
Joined: March 10th, 2005, 5:50 am
Location: London, UK
Contact:

Surely you just loop through the properties of the propertyGroup / numProperties an dtest each one, collecting the results in an array?
byronnash
Posts: 321
Joined: July 7th, 2004, 2:30 pm
Location: Charlotte, NC
Contact:

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?
davestewart
Posts: 114
Joined: March 10th, 2005, 5:50 am
Location: London, UK
Contact:

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 ;)
Post Reply