Mailing List AE-List@media-motion.tv ? Message #52014
From: Dan Ebberts <debberts@comcast.net>
Subject: Re: [AE] Expressions: "this" clone stroke
Date: Fri, 13 Dec 2013 09:20:18 -0800
To: After Effects Mail List <AE-List@media-motion.tv>
Try it this way:
 
value + [(parseInt(thisProperty.propertyGroup(2).name.split(" ")[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 "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öhl <info@mamoworld.com> wrote:
yes, since the property you apply it to is actually
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...
 
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. 
effect("Paint").stroke("Clone 1").transform.position+75


--

mamoworld.com
simplify your cgi

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

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