I’m using a template made in google web designer.
The html loads fine in chrome, and sending the update command with a proper string results in the template running and everything flows according to plan.
But when loading the template in casparcg, when update() is called the elements it is trying to change values don’t exist yet, and the template crashes out or does not update the elements.
I’ve come to this conclusion logging variables to console, and they are undefined then update() tries to access them.
Any way to avoid this situation?
setTimeout’ing the insertion code to only run after 2000ms fixes this, but is no solution.