ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

How to refer to the comp element is nested in

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Andreas WoelflHow to refer to the comp element is nested in
by on Sep 29, 2016 at 9:49:41 am
Last Edited By Andreas Woelfl on Sep 29, 2016 at 9:53:24 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.


Return to posts index

Cassius MarquesRe: How to refer to the comp element is nested in
by on Sep 29, 2016 at 5:22:45 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


Return to posts index

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