FORUMS: list search recent posts

After Effects Script - .remove does nothing?

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Steve Lewis
After Effects Script - .remove does nothing?
on Mar 24, 2017 at 5:26:59 pm

I don't know if I'm losing my mind here or what, but I'm trying to use a very simple function in extendscript to remove a project item entirely:

app.project.item(1).remove;

This should remove the first item in my project panel right? Nope, the script runs, no errors appear, nothing changes, am I missing something?

Thanks for any help,
Steve


Return to posts index

Steve Lewis
Re: After Effects Script - .remove does nothing?
on Mar 24, 2017 at 5:46:07 pm

Okay wow, I just figured it out, I didn't put brackets after remove -_-

it's meant to be:

app.project.item(1).remove();


Return to posts index

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