Linking multiple layers to one main layer
Hey there.
I have a script, in which I have a for loop to duplicate a layer a certain amount of times.
I was wondering how can I then link the effect properties of all the newly duplicated layers to the original one.
I was thinking of acessing the PropertyGroup of my effect on every laye and then, for every property, to set an expression, linking to the original layer.
Unfortunately I couldn't find anything in the scripting references witch could allow me to loop through all the properties of an effect.
If my description wasn't clear...here' what I want (more or less) the script to do:
Say you have 1 layer with a "fill" effect apllied on it.
I want my script to duplicate that layer a certain amount of times, and then link the fill color of all the new layers to the fill color of the original one.
Note this is not my actual script, just a simplified example of what I need to achieve.
I would be very grateful if someone can give me a rough idea of how I might accomplish this, or reference me to where in the scripting guide I can find more info about the matter.
Thank you in advance ![]()
