Incremental expression layer name when layer is duplicated
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
update: DuplicateLayers-n-UpdateExpressions
just found this if anyone else is wondering. This is exactly what i was trying to explain (lol)
Copy link to clipboard
Copied
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:)
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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)
Copy link to clipboard
Copied
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)

