From: "Mike Abbott" Received: from outmx-028.london.gridhost.co.uk ([95.142.156.253] verified) by media-motion.tv (CommuniGate Pro SMTP 6.1.0) with ESMTPS id 7508357 for AE-List@media-motion.tv; Mon, 17 Feb 2020 22:31:20 +0100 Received: from [10.8.8.133] (unknown [194.35.233.80]) (Authenticated sender: mda@vantagegraphics.co.uk) by outmx-028.london.gridhost.co.uk (Postfix) with ESMTPA id AEAD820B54DE8 for ; Mon, 17 Feb 2020 21:31:16 +0000 (GMT) Subject: Re: [AE] Footage duration expression To: After Effects Mail List References: Message-ID: <29c45539-7c17-de1e-cdd2-11fe0cb6d997@vantagegraphics.co.uk> Date: Mon, 17 Feb 2020 21:31:15 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US 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.