|
|
I just found an error in the code too. I forgot to assign the Array to variable compAry. I'm updating the code properly right now. Just got to the office.
--
David Torno
Visual Effects Artist and Supervisor
http://www.ghosttownmedia.com
david@ghosttownmedia.com
O: 213.739.2290
C: 818.391.6060
------------------------------------------------
http://www.sydefxink.com (main portfolio)
http://aeioweyou.blogspot.com (vfx tutorials and AE scripts blog)
http://mactex.blogspot.com (free textures blog)
-----Original Message-----
From: David Torno [mailto:torno@sydefxink.com]
Sent: Tuesday, June 4, 2013 09:55 AM
To: 'After Effects Mail List'
Subject: Re: [AE] comp name expression
Hahha, yes, brain are still waking up. ;)
If you want only selected comps in the project window then you would change these three lines...
proj = app.project;
totalItems = proj.numItems;
curItem = proj.item(i);
to
proj = app.project.selection;
totalItems = proj.length;
curItem = proj(i);
that should cover it. I'll verify it in a little bit.
David Torno
Visual Effects Artist & Supervisor
http://www.ghosttownmedia.com
O: 213.739.2290
C: 818.391.6060
---------------------
http://www.sydefxink.com
http://aeioweyou.blogspot.com
http://mactex.blogspot.com
"The most useless day is that in which we do not laugh"
-Charles Field
On Jun 4, 2013, at 9:06 AM, Py Fave <pyfave@gmail.com> wrote:
> 2013/6/4 David Torno <torno@sydefxink.com>:
>> I through an error catcher on it too just incase
>
>
> you threw fast !
>
> a few lines have to be changed to only rename selected comps.
>
> but i can't remember
> app.project.activeItem somewhere ??
> just in case you have two more minutes :-)
>
> +---End of message---+
> To unsubscribe send any message to <ae-list-off@media-motion.tv>
>
+---End of message---+
To unsubscribe send any message to <ae-list-off@media-motion.tv>
|
|