Return-Path: Received: from qmta11.emeryville.ca.mail.comcast.net ([76.96.27.211] verified) by media-motion.tv (CommuniGate Pro SMTP 4.2.10) with ESMTP id 5316799 for ae-list@media-motion.tv; Fri, 13 Dec 2013 18:17:31 +0100 Received: from omta20.emeryville.ca.mail.comcast.net ([76.96.30.87]) by qmta11.emeryville.ca.mail.comcast.net with comcast id 13uK1n0021smiN4AB5LGvp; Fri, 13 Dec 2013 17:20:16 +0000 Received: from HPZ200 ([24.10.59.135]) by omta20.emeryville.ca.mail.comcast.net with comcast id 15LF1n00t2v3gNo8g5LGw3; Fri, 13 Dec 2013 17:20:16 +0000 Message-ID: <0191C95A6F76461FB48E27A008F70A1E@HPZ200> From: "Dan Ebberts" To: "After Effects Mail List" References: In-Reply-To: Subject: Re: [AE] Expressions: "this" clone stroke Date: Fri, 13 Dec 2013 09:20:18 -0800 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0061_01CEF7E4.8A4D02B0" X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Mailer: Microsoft Windows Live Mail 15.4.3555.308 X-MimeOLE: Produced By Microsoft MimeOLE V15.4.3555.308 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20121106; t=1386955216; bh=bWfrj+libBeKZmJWRFi6azAQmCJbccRo6w8ym0ACg+Y=; h=Received:Received:Message-ID:From:To:Subject:Date:MIME-Version: Content-Type; b=aqazUJami/ICOT7QzcNMlJC6TAb/SonePyiev8U4iZAPBy/8Qx27hQxR3ZPV/14iL QFRuJnCB1/u4HKBs7IrIOKGJoO/Qv85y4OQ21IflpY4Nf6kUxbnOiqe/MUTv+Bnhhb SQexhwG9vDDP9Bz31gZM2BFYCkkyfFsoqy2CpqQmiHWE1clHUF++z2Xgc56YdpNBJL w8AOIwZn8QBC/gMEc/aTI65nNK7JrdhBIM3gfC8l6feOq/u4IQfQN+k8TCO1N9NirT eYGrFPgc9qhlAhW6v0zfVJbFxVX6tPmwZhJV+1NorKxslH4cQvNTvLjodXulYyUGUc hEVJ7fDmiG5WA== This is a multi-part message in MIME format. ------=_NextPart_000_0061_01CEF7E4.8A4D02B0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Try it this way: value + [(parseInt(thisProperty.propertyGroup(2).name.split(" = ")[1],10)-1)*75,0] Dan From: Byron Nash=20 Sent: Friday, December 13, 2013 9:07 AM To: After Effects Mail List=20 Subject: Re: [AE] Expressions: "this" clone stroke That did not seem to work. Nor did "value.transform.position", or = "value.position".=20 On Wed, Dec 11, 2013 at 1:44 PM, Byron Nash wrote: Ah, thanks. I'll give that a whirl! On Wed, Dec 11, 2013 at 12:38 PM, Mathias M=F6hl = wrote: yes, since the property you apply it to is actually=20 effect("Paint").stroke("Clone 1").transform.position you can simply write value + 75 Cheers, Mathias Am 11.12.2013 18:16, schrieb Byron Nash: Is there a way to tell an expression to look at its own layer = name, property, etc? For instance, I'm using some expressions on Clone = Paint strokes and would like to have the Clone Stroke name be generated = dynamically instead of me changing it to "Clone 1", "Clone 2" etc...=20 I have this line on my clone position and keep duplicating the = stroke. It would be nice to have the name of the stroke change for me = each time. Something like "this" in certain contexts in scripting. =20 effect("Paint").stroke("Clone 1").transform.position+75 --=20 -------------------------------------------------------------------------= --- mamoworld.com simplify your cgi=20 dr. mathias m=F6hl marlow 52, 18551 sagard, germany phone +49 (0)38302 - 887561 info@mamoworld.com=20 ------=_NextPart_000_0061_01CEF7E4.8A4D02B0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Try it this way:
 
value + [(parseInt(thisProperty.propertyGroup(2).name.split("=20 ")[1],10)-1)*75,0]
 
 
Dan
 
 
 
From: Byron Nash
Sent: Friday, December 13, 2013 9:07 AM
Subject: Re: [AE] Expressions: "this" clone = stroke
 
That did not seem to work. Nor did = "value.transform.position", or=20 "value.position".


On Wed, Dec 11, 2013 at 1:44 PM, Byron Nash = <byronnash@gmail.com> wrote:
Ah, thanks. I'll give that a whirl!


On Wed, Dec 11, 2013 at 12:38 PM, Mathias = M=F6hl <info@mamoworld.com> wrote:
yes, since the property you apply it to is actually
effect("Paint").stroke("Clone=20 1").transform.position
you can simply = write

value +=20 75

Cheers,
Mathias

Am 11.12.2013 18:16, schrieb = Byron=20 Nash:
Is there a way to tell an expression to look at its = own layer=20 name, property, etc? For instance, I'm using some expressions on = Clone=20 Paint strokes and would like to have the Clone Stroke name be = generated=20 dynamically instead of me changing it to "Clone 1", "Clone 2" = etc...=20
 
I have this line on my clone position and keep duplicating = the=20 stroke. It would be nice to have the name of the stroke change for = me each=20 time. Something like "this" in certain contexts in = scripting. 
effect("Paint").stroke("Clone=20 = 1").transform.position+75


--

mamoworld.com
simplify your cgi =

dr.=20 mathias m=F6hl
marlow 52, 18551 sagard, germany
phone +49 (0)38302 - 887561
info@mamoworld.com=20

 
 
------=_NextPart_000_0061_01CEF7E4.8A4D02B0--