Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions script to navigate hierachy and change rotation value of all contents

  • script to navigate hierachy and change rotation value of all contents

    Posted by Marco Milani on March 29, 2019 at 6:21 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

    Tomas Bumbulevičius replied 7 years, 5 months ago 2 Members · 1 Reply
  • 1 Reply

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy