Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects How to refer to the comp element is nested in

  • How to refer to the comp element is nested in

    Posted by Andreas Woelfl on September 29, 2016 at 9:49 am

    Hello everybody,

    I would like to write an expression for the stroke thinkness of a ShapeLayer.
    The thickness should be given by a slider of an AdjustmentLayer in the MainComp.
    I cannot use the expression comp(“MainComp”), because there will be different copies of the MainComp and each one will have a different name. Each copy will have a different stroke thickness.

    Here the scenario:

    MainComp
    – AdjustmentLayer
    – PreComp
    — ShapeLayer

    So the ShapeLayer is inside of a PreComp. The adjustment layer is inside the MainComp, together with the PreComp.

    Is the some kind of expression that I can use. Instead of “thisComp” somthing like “jumpOutsideThisComp” 🙂

    Thanks a lot for the help.

    Cassius Marques replied 9 years, 10 months ago 2 Members · 1 Reply
  • 1 Reply
  • Cassius Marques

    September 29, 2016 at 5:22 pm

    The “comp” object has no method that returns where the composition is placed at. Since it can be inside more than one other composition.

    But anyway if

    [Andreas Woelfl] “there will be different copies of the MainComp and each one will have a different name.”

    why don’t you reference them by name?

    I really don’t get it.

    Cassius Marques
    http://www.zapfilmes.com

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