Return-Path: Received: from moutng.kundenserver.de ([212.227.17.8] verified) by media-motion.tv (CommuniGate Pro SMTP 4.2.10) with ESMTP-TLS id 5180060 for AE-List@media-motion.tv; Mon, 19 Aug 2013 15:32:37 +0200 Received: from oxbaltgw01.schlund.de (oxbaltgw01.schlund.de [172.19.246.7]) by mrelayeu.kundenserver.de (node=mreu2) with ESMTP (Nemesis) id 0LroEc-1WDwof0N6U-013yBO; Mon, 19 Aug 2013 15:44:43 +0200 Date: Mon, 19 Aug 2013 15:44:42 +0200 (CEST) From: "mylenium@mylenium.de" Reply-To: "mylenium@mylenium.de" To: After Effects Mail List Message-ID: <226482981.222786.1376919883031.open-xchange@email.1und1.de> In-Reply-To: References: Subject: Re: [AE] expression to check for a 3d layer MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_222785_1696718585.1376919882982" X-Priority: 3 Importance: Medium X-Mailer: Open-Xchange Mailer v7.2.2-Rev13 X-Provags-ID: V02:K0:SJDreEdW9NtAc5tTfMbbjl8a7x1kYc3nsGBG8R46ykH nZyXsDg+8ZPdMFZySNw1U+Hlqm1qA/m65xNCsyApw/blCqSjrc 5hDXWm4pThLDkz5NYG5GTOn+vslIiD/Fvbm3M+59ZV7r7eSD6h z3eiJ1IpvsSMX9i0ttpc19WHdO5V3spOm7IQhMpFdRri92vVnX e7GeJqJl5Hw9kHf4n8l6I5D3S7qcrb78yNc9KeiX2WZ3Myy2Hu tCVUtdoSri7ie/kT3FuWjxKeqdtJlS0/NdtN8aIlMaOwkSBGoC exHWtKnqr2Ks0CbA8mQ8XWqhVNLTbHzeXMUwx3K3Cw0vU50RaF Btf4GlRrArPCvvglSXV6F6BN3Sxny9YhN/EPklPnPN8T/f7dcp YuTGN+qqtCIPQ== ------=_Part_222785_1696718585.1376919882982 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Unfortunately there is no built-in method to check for that. you will have = to tag your layers somehow by naming them suitably or applying a specificalyl = named dummy effect that can be searched for. Mylenium [Pour Myl=C3=A8ne, ange sur terre] ----------------------------------------- www.mylenium.de > Drew Gilmore hat am 19. August 2013 um 15:09 > geschrieben: >=20 > I'm trying to write an expression that checks if a layer (specified by a > layer expression control) has its 3D layer switch on. >=20 > L=3Deffect("Layer Control")("Layer"); > if ( L.threeDLayer) { //do something }; >=20 > But I get the error "Class 'Layer' has no property or method named > 'threeDLayer'". >=20 > I've checked all over for an example, and can't find anything that doesn= 't > look like this. I'm sure I'm missing something simple and object-oriented= ... >=20 > Drew > -- > Drew Gilmore > Just a guy made of dots and lines. > >=20 >=20 >=20 >=20 >=20 >=20 ------=_Part_222785_1696718585.1376919882982 MIME-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit
Unfortunately there is no built-in method to check for that. you will have to tag your layers somehow by naming them suitably or applying a specificalyl named dummy effect that can be searched for.
 
Mylenium
 
[Pour Mylène, ange sur terre]
-----------------------------------------
www.mylenium.de
 
Drew Gilmore <dotsandlines@gmail.com> hat am 19. August 2013 um 15:09 geschrieben:

I'm trying to write an expression that checks if a layer (specified by a layer expression control) has its 3D layer switch on.
 
L=effect("Layer Control")("Layer");
if ( L.threeDLayer)   { //do something };
 
But I get the error "Class 'Layer' has no property or method named 'threeDLayer'".
 
I've checked all over for an example, and can't find anything that doesn't look like this. I'm sure I'm missing something simple and object-oriented...
 
Drew
--
Drew Gilmore
Just a guy made of dots and lines.
 
 

 

 

 


 
------=_Part_222785_1696718585.1376919882982--