ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Simple scripting question re comp names

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Carver Koella
Simple scripting question re comp names
on Oct 13, 2011 at 10:11:16 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!!

Return to posts index

Michael Szalapski
Re: Simple scripting question re comp names
on Oct 18, 2011 at 7:00:58 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.

Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 All Rights Reserved