ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

script to navigate hierachy and change rotation value of all contents

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Marco Milani
script to navigate hierachy and change rotation value of all contents
on Mar 29, 2019 at 6:21:24 pm

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


Return to posts index

Tomas Bumbulevičius
Re: script to navigate hierachy and change rotation value of all contents
on Mar 31, 2019 at 6:56:29 pm

Hey Marco,

this script by rd will be your first base to hit, as well as will help in a learning curve.

Select the property you want to get access to and hit 'Get Property Path' button.

Find out more:
After Effects Tutorials: motion design, expressions, scripting.


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2019 CreativeCOW.net All Rights Reserved
[TOP]