Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Incremental expression layer name when layer is duplicated

Community Beginner ,
Jan 12, 2025 Jan 12, 2025

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 

TOPICS
Dynamic link , Expressions
258
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jan 12, 2025 Jan 12, 2025

update: DuplicateLayers-n-UpdateExpressions

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

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jan 12, 2025 Jan 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:)

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 12, 2025 Jan 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jan 12, 2025 Jan 12, 2025

Hi Dan.

yeah my English is not great and i am from England. But yes thats it. There is actually 2 parts to this. the updating of the 'thisComp.layer' name to match the actual layer. But also so the attractor layer matches.

I have highlighted these 2 in bold. mayber the second part is to link the ('06') to the (Attract 06).

sorry for the confusion i have various version of Dyslexia also i'm not tiptop on the terms with expressions to explain things sometimes.

 

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

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 12, 2025 Jan 12, 2025
LATEST

I'm still not sure, in your example, what the name of the layer with the expression is, but if it's "06", then something like this should work:


linear(effect("Slider Control")("Slider"), 0, 100, thisComp.layer("Attract " + name).position, position)
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines