Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Expression for changing colors on characters

  • Expression for changing colors on characters

    Posted by Seanssecret on May 23, 2007 at 6:22 pm

    Hi everyone. I am new to After Effects, but learning quickly. I am very close to fixing a problem I have, but I need some help.

    I have a character and I have set up 3 null objects to control the color of their shirt, pants, and skin tone. I am using the Hue/Saturation control. I have nested this into another composition and create three new null objects. I want these new null objects to control the color of the clothes & skin.

    I need to use this same character composition, but changing the colors while nested in several Main compositions (this is the problem). I do not know how to reference these two Null Objects so that I can make the color changes from the main composition.

    This doesn’t sound hard, but I can’t figure it out. Please help and feel free to ask me questions!


    Sean

    Colin Braley replied 18 years, 12 months ago 2 Members · 3 Replies
  • 3 Replies
  • Colin Braley

    May 23, 2007 at 7:06 pm

    Add the “Render>Fill” effects to the clothes layer, and then add a “Color Control” to a null in a comp. (They don’t have to be in the same comp) Add this expression to the “Color” property of the “Fill” effect.

    comp(“Name_of_Comp_with_Null”).layer(“Name_of_Null_with_Color Control”).effect(“Color Control”)(“Color”)

    Just replace Name_of_Comp_with_Null and Name_of_Null_with_Color Control and you should be set.
    ~Colin

  • Seanssecret

    May 23, 2007 at 8:46 pm

    Colin,
    If I read your post correctly, I believe that I still have the same problem as before. Let me detail, and if I am wrong, maybe you will have to detail..

    I need two different sets null objects. One will be on the character’s composition (to reference same-colored layers), and another on the main composition (to control the first null object).

    this was the code you provided me:
    comp(“Name_of_Comp_with_Null”).layer(“Name_of_Null_with_Color Control”).effect(“Color Control”)(“Color”)

    I assume that the above code was used in the character composition. It points to the null object on the “Name_of_Comp_with_Null” comp. The problem is, I have multiple comps where I want to use color controllers, and each of those comps will have different null object layers. I can’t reference any other comps or layers specifically because there will be several. Am I understanding you correctly?


    Sean

  • Colin Braley

    May 25, 2007 at 2:05 pm

    I’m sorry, but I really can’t follow the descroption you gave above. If you wan’t, feel free to post your .aep file and I’ll take a look at it.
    ~Colin

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