FORUMS: list search recent posts

text strings

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Tom Durham
text strings
on Feb 11, 2012 at 7:41:56 pm

I'm crashing on a project this weekend... hopefully someone will see this! :)

Linking expressions using layer and comp names.

This is easy:

>
n1 = thisComp.name.split(" ")[0];
comp("MASTER PERIODIC TABLE").layer("MASTER CONTROL").effect(n1)("Color")
>

My layer name is "11 Na Sodium". (Doing a fancy science anim.)

But what if I need my effect in MASTER PERIODIC TABLE to be "11 Na COLOR."

How do I string together text snippets and add the world COLOR?

>
n1 = thisComp.name.split(" ")[0];
n2 = thisComp.name.split(" ")[1];
comp("MASTER PERIODIC TABLE").layer("MASTER CONTROL").effect(???????????????????????????)("Color")
>

Thanks MUCH for any help.

-Tom





================================================
YOU can help save TimeSpace. Join the Chronos Protectorate!

http://www.95ers.com
http://www.SpaceAceMedia.com


Return to posts index

Tom Durham
Re: text strings
on Feb 11, 2012 at 7:53:03 pm

Thanks to one of Dan's earlier posts I found the answer. THANKS DAN!

n1 = thisComp.name.split(" ")[0];
n2 = thisComp.name.split(" ")[1];

comp("MASTER PERIODIC TABLE").layer("MASTER CONTROL").effect(n1 + " " + n2 + " ind COLOR")("Color")






================================================
YOU can help save TimeSpace. Join the Chronos Protectorate!

http://www.95ers.com
http://www.SpaceAceMedia.com


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]