Simple scripting question re comp names
by Carver Koella on Oct 13, 2011 at 10:11:16 pm
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 :(