-
script to navigate hierachy and change rotation value of all contents
Hi, I’m new to after effects.
I’m wondering if it is possible to change randomly a property of all subobject, via script and where to place this script!

Basically I thought to loop through the Contents (array?) get the “lettere” object, loop through the child objects, get the property transform.rotation = random()*20-10;I’d like to know however to lear not only for this subject but in general.
I have tryed with this script placing it in transform rotation property of layer “lettere”:
transform.rotation;
thisGroup=thisComp.layer(“lettere”).content(“lettere”);//error because it finds a Group when wants Number, Array or Property needed…where I can find documentation that permits to learn navigation to hierachy? (I have not found in adobe documentation…surely there is…but I don’t understand very well)
thanks