-
Compositions are changing their own names! HELP! :(
Hello. I am creating some assets that I duplicate using true comp duplicator. They are meant to be used many times in the form of a question with some options as answers. Text is going to change of course for each instance.
I have a master composition where I have some precomps for the question/option boxes. the text layers are all in the master composition. I have a null(as a control layer) at the top with some sliders that control the width of all of the boxes which I remind you are inside their own precomps(They are all basically the same precomps but TRUE duplicated).
The way I achieve this is by adding an expression to the width of the boxes(shape layer with points following nulls, so the expression lives in the x position preperty of one of the nulls) which references the name of the composition where the expression exists(thisComp.name) and uses that to find the slider with that name we just referenced back in the master composition.
I want to make clear that this is something I do every day every week and have been doing it for almost a year, but this is an asset I am creating for a new client. I am basically just recreating a method I have already been using for my older client for almost a year.
BUT NOW, for some reason, the compositions are changing their own names to random numbers, that makes ALL expressions break because they are trying to find a slider with the name of the composition where they exist and if that name is being change by after effects then they are never going to find the slider they are looking for!
I need help please. I have been doing this for several months and normally there is no problem at all. precomps having the same name is not a problem for the expressions because all of those precomps with same names live in master compositions with different names.
Expression is:
n = thisComp.name;
sl = comp(“Multiple Choice Question 01”).layer(“Control”).effect(“Width “+n)(“Slider”);
linear(sl,0,100,50,1920)