Skip to main content
Known Participant
May 1, 2020
Question

Expressions stop working after pre-compose

  • May 1, 2020
  • 1 reply
  • 2082 views

I had several layers with properties pickwhipped to another layer's properties in a precomp. Now I had to pre-comp that layer again and all the expressions went haywire:

I tried to change the first one to the new precomp's name but the error persists. Is it because this pre-comp is inside another pre-comp? If so what do I need to change this expression to?

The layer the expression is looking is in a pre-comp "scene_1_wiggle" which is inside the pre-comp "Scene1". Sorry if this is a very dumb question, I am very new to expressions.

This topic has been closed for replies.

1 reply

Community Expert
May 1, 2020

Your cropped screenshot tells us nothing at all about the layer names or your comp structure. A flow chart would also help. If the expression stopped working then something got moved without moving all properties.

 

For example:

comp("Comp that has the property").layer("Layer we want to look at").mask("Mask 1").maskPath

Will work no matter where the comp with the expression is in the hierarchy as long as the Comp that has the property has a Layer we want to look at and that layer has a mask named Mask 1 that has a mask path.

 

Check your flow chart and check for the right path.

 

 

Known Participant
May 1, 2020

My mistake - the screenshot was to show the error but for some reason it didn't pick it up and I didn't notice 🙂 fixed it now. I definitely think it is something to do with that second pre-comp, because it came after the expressions were already put in place, and that's when everything went weird.  But it won't accept it when I put the correct pre-comp name in the expressions instead either. I will look into the flowchart and get back to you if I can't figure it out myself. Thanks!