Skip to main content
electricpalmtrees
Known Participant
January 12, 2025
Question

Incremental expression layer name when layer is duplicated

  • January 12, 2025
  • 1 reply
  • 580 views

I'm using an attractor (layer from Null A to B) type setup:-

 

this:

linear(effect("Slider Control")("Slider"), 0, 100, thisComp.layer("Attract 06").transform.position, thisComp.layer("06").transform.position)

 

The layer naem is 

Is there a way that i can link the layer name (which is Attract 06) to the expression "thisComp.layer("Attract 60") entry, it would save me quite a bit of double clicking and typing as i'll be going into triple figures with duplications. maybe a dynamic link or some kind of exprression link?

? i'm all ears 

1 reply

electricpalmtrees
Known Participant
January 12, 2025

update: DuplicateLayers-n-UpdateExpressions

just found this if anyone else is wondering. This is exactly what i was trying to explain (lol)

 

electricpalmtrees
Known Participant
January 12, 2025

new update, that plugin didn't quite work, so if there is another way to link the layer name to the expression 'thisComp.layer' please jump in:)

Dan Ebberts
Community Expert
Community Expert
January 12, 2025

It's not really clear (to me, at least) what you're asking for. Is it that you want some way for the expression to modify itself based on the name of the layer containing the expression? More detail would be helpful.