From: "Phil Spitler" Received: from mail-pj1-f52.google.com ([209.85.216.52] verified) by media-motion.tv (CommuniGate Pro SMTP 6.1.0) with ESMTPS id 7508363 for AE-List@media-motion.tv; Mon, 17 Feb 2020 22:35:00 +0100 Received: by mail-pj1-f52.google.com with SMTP id dw13so75936pjb.4 for ; Mon, 17 Feb 2020 13:35:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bonfirelabs-com.20150623.gappssmtp.com; s=20150623; h=from:mime-version:subject:date:references:to:in-reply-to:message-id; bh=pY/MnoM2NFPwLlUZc0AeZn/7SkbX61FCsqBKcZLeFRQ=; b=m2XTf8CZIQL4bhfD5Qr+qhbASfRN1WA6v7f5QOfXk2P/cRRksy3hf5EatpgqvX+rnG OOsNH7OwKtrIv8l2Ls7Kjrh/bd0sAq+ORyS0Ql9h8EIOYDkhnbQzvdg6i4oLZgO3OA4v WC4DCYNgP2fx/s1TU+bd8yT4FCkrFWijPZJ1QPAckileCnFDp0Z9U/xZdaXjoL4X2wo2 ndjrQvoR2yWSE0aKv2G9P/hn7riffM2uBGFQaqLlTfw+chTvb1QYiwPdi6FpZ7ViS/58 MRkTH345wzguK2WBgDtYNDN6PDAmaVkYSNNPJRZU/bvvDv9b4W0mm9g7g1OojULrSNNC EfEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:subject:date:references:to :in-reply-to:message-id; bh=pY/MnoM2NFPwLlUZc0AeZn/7SkbX61FCsqBKcZLeFRQ=; b=qy4/Iu9egbcHlr4SZ0uBdYAFx8XHBI65PEy0OI8RFjChW5z2wFEMCE0LxiVlGe1fqR hlYZJE+9L6pIgtrFBvOdn2F6H8vuMvbFq6KZM8GLrLQRlYKadGil7NbdYTbxWhGaIgxA 1AoiaTKKzAQI/iIpupj+g6C3v63ocHXMt8FSdAxgTQsCVjhlOcAyytRCsHHq8cZOTOPq 5szyCZugVMuXjR+/uMqYVoBnYpnhv3cUOkeIKBlXgMGZSZLmi1VxaqHr2OI6dGjGS8m8 wcBJHrFgXAk3F1tfz6wN4IvcsxTqu2zIkjCqKNzKrN53QYgolU/lPRs+ZBPxSw/ek7PE c1xA== X-Gm-Message-State: APjAAAWYbfjYQO5DPfsk4NrSgbuujLLIwYohJ91LrDNVEDHMu1TW90qI nG+FHPJJuUMKB7aQRP6PnmumbRUXSta6Bg== X-Google-Smtp-Source: APXvYqwheqwvhC30wVOvcb58zkKMns3dKLuWUfoI7RLWHJ8GM9CkjS8mxCbLUi1T7bEZrnFlJ9i1OA== X-Received: by 2002:a17:90b:30c9:: with SMTP id hi9mr1123317pjb.81.1581975295831; Mon, 17 Feb 2020 13:34:55 -0800 (PST) Return-Path: Received: from [192.168.86.94] (198-27-188-109.fiber.dynamic.sonic.net. [198.27.188.109]) by smtp.gmail.com with ESMTPSA id fh24sm366412pjb.24.2020.02.17.13.34.54 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 17 Feb 2020 13:34:55 -0800 (PST) Content-Type: multipart/alternative; boundary="Apple-Mail=_6E62B8CF-07CD-4149-B7E1-11447D9AB7D3" Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: [AE] Footage duration expression Date: Mon, 17 Feb 2020 13:34:53 -0800 References: To: After Effects Mail List In-Reply-To: Message-Id: X-Mailer: Apple Mail (2.3445.104.11) --Apple-Mail=_6E62B8CF-07CD-4149-B7E1-11447D9AB7D3 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Source.duration worked great thanks. Curious why it=E2=80=99s just listed as =E2=80=9Cduration=E2=80=9D in = the drop down. Phil Phil Spitler Creative Technologist t 415.394.8200 c 415.571.3139 = = = = > On Feb 17, 2020, at 1:31 PM, Mike Abbott = wrote: >=20 >=20 > 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=E2=80=A6 >> Saying the property or class =E2=80=9Cduration=E2=80=9D is missing. >> My expression is: >> movieLength=3DthisComp.layer(=E2=80=9Csource").duration; >=20 >=20 > Try: > movieLength =3D thisComp.layer(=E2=80=9Csource").source.duration; >=20 > ...but that will give you the source duration - not the trimmed = duration, and wouldn't work for stills I don't expect. >=20 > Would this work? >=20 > myMovie =3D thisComp.layer("source"); > movieLength =3D myMovie.outPoint - myMovie.inPoint >=20 >=20 > Mike A. >=20 >=20 > +---End of message---+ > To unsubscribe send any message to --Apple-Mail=_6E62B8CF-07CD-4149-B7E1-11447D9AB7D3 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Source.duration worked great thanks.

Curious why it=E2=80=99s just listed as = =E2=80=9Cduration=E2=80=9D in the drop down.

Phil

3D"bonfire-logo"
Phil = Spitler  Creative = Technologist
t  415.394.8200  c  415.571.31393D""3D""3D""3D""



On Feb 17, 2020, at 1:31 PM, Mike Abbott <AE-List@media-motion.tv> wrote:


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=E2=80=A6
Saying the property or = class =E2=80=9Cduration=E2=80=9D is missing.
My expression = is:
movieLength=3DthisComp.layer(=E2=80=9Csource").duration;=


Try:
movieLength =3D = thisComp.layer(=E2=80=9Csource").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 =3D thisComp.layer("source");
movieLength= =3D myMovie.outPoint - myMovie.inPoint


Mike A.


+---End = of message---+
To unsubscribe send any message to <ae-list-off@media-motion.tv>

= --Apple-Mail=_6E62B8CF-07CD-4149-B7E1-11447D9AB7D3--