Creative Communities of the World Forums

The peer to peer support community for media production professionals.

  • Posted by Tom Gomez on February 11, 2012 at 7:41 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!

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

    Tom Gomez replied 14 years, 2 months ago 1 Member · 1 Reply
  • 1 Reply
  • Tom Gomez

    February 11, 2012 at 7:53 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!

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

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy