-
JSON expression project-
Hi guys,
I have a recent JSON after effects project that I am trying to hack to fit my purposes. From CSV spreadsheet conversion to JSON I am reading in the text of different Rows into their assigned Text boxes in a after effects composition.
So far the JSON to TEXT BOX is not the issue and works accordingly… I can copy and paste as many new text boxes… link them to the new CSV/JSON fields and it will work just fine…. But the same is not working for the next accompanying
the other side to this JSON magic is that I have 80+ different comps with a different animation inside each one. Which are also activated by the CSV row/JSON field…
So a maximum of 80 comps are ALSO being simultaneously triggered by the JSON BUT it’s problem is that only one composition at a time is appearing in the comp…
As soon as I copy and paste an existing comp with “working code” assigned in it, change its name/linking to the JSON…. it doesn’t work… after much trial and error (being a newbie to expressions) I realized that this particular expression only works with ALLOWING one comp activated by JSON at a time….
As soon as I disable the expression it works fine just like a composition should… but enabled with the current JSON code… Only one comp can be instructed via the JSON appearing in the comp.
My goal is to introduce new comps that are triggered by new fields that I will add to the JSON code as I go along.
posted in the code box are the two entries from the comps – “Time remap” and “Opacity” editor box – I speak of.
I suspect the problem obviously lies with the opacity expression which is on all of my 80+ comps.
————-
Time remap – loopOut(type = “cycle”, numKeyframes = 0)
Opacity – if (thisComp.layer(“Group_1off”).text.sourceText == (thisLayer.name)) {100} else 0;
———————
loopOut(type = "cycle", numKeyframes = 0)if (thisComp.layer("Group_1").text.sourceText == (thisLayer.name)) {100} else 0;