Mailing List AE-List@media-motion.tv — Message #66008
From: Mike Abbott <AE-List@media-motion.tv>
Subject: Re: [AE] Footage duration expression
Date: Mon, 17 Feb 2020 21:31:15 +0000
To: After Effects Mail List <AE-List@media-motion.tv>

On 17/02/2020 20:19, Phil Spitler wrote:
According the the expressions menu I should be able to get the duration of a layer but my expressions keep erroring…
Saying the property or class “duration” is missing.
My expression is:
movieLength=thisComp.layer(“source").duration;


Try:
movieLength = thisComp.layer(“source").source.duration;

...but that will give you the source duration - not the trimmed duration, and wouldn't work for stills I don't expect.

Would this work?

myMovie = thisComp.layer("source");
movieLength = myMovie.outPoint - myMovie.inPoint


Mike A.

 
Subscribe (FEED) Subscribe (DIGEST) Subscribe (INDEX) Unsubscribe Mail to ListMaster