Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Simple scripting question re comp names

  • Simple scripting question re comp names

    Posted by Carver Koella on October 13, 2011 at 10:11 pm

    Hi all!

    This is a super dumb question, and I honestly searched the net for a long time before posting, so… I’m just super dumb.

    I’m trying to reference a comp by name in a Script. For example:

    whateverComp = app.project.comp(“This Comp”)

    I’m doing it this way because I’ve (mis?)read in multiple places that this is the global value that will return that comp (other than referencing its index or referencing activeItem etc, which I can not do in this particular instance). Yet I get an error because it’s trying to treat it as a function, naturally, since the thing ends in ()’s.

    How should it be written instead? I’ve tried a billion different variances, too 🙁

    Thanks in advance!!

    Michael Szalapski replied 14 years, 7 months ago 2 Members · 1 Reply
  • 1 Reply
  • Michael Szalapski

    October 18, 2011 at 7:00 pm

    You might get a better response in the Expressions forum.

    – The Great Szalam
    (The ‘Great’ stands for ‘Not So Great, in fact, Extremely Humble’)

    No trees were harmed in the creation of this message, but several thousand electrons were mildly inconvenienced.

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