I made a videolayer template_1 made in Photoshop, and the animation plays ok in CasperCG. It has three layers - BG, a box with animation, and two text layers - f0 & f1.
I was kinda hoping that I could use the psd file and update the content of text layers f0 and f1 dynamically with the AMCP command
(‘CG 1-22 ADD 1 “template_1” 1 “<componentData id=\“f0\”><data id=\“text\” value=\”%s\"/><componentData id=\“f1\”><data id=\“text\” value=\"%s\"/>" \r\n’ % (f0, f1))
I already do this successfully with templates created in flash and exported thru the generator with the dynamic text layers named f0 and f1, and I provide text strings from an external python program passing it with thru vars f0 and f1 as above - the strings are not garbled.
The text layers in Photoshop however, behave rather oddly. At the moment it seems that only some of the text is sent to the text layer if it is named f0, and if I rename it, it doesn’t receive anything at all. For example sending the f0 string ‘New Title’ truncates into ‘Ne te’, but sending the string ‘Extremely Short’ truncates to ‘Eeme S’ - it seems there is no apparent logic to it - text just gets garbled and there is an encoding problem.
I can’t get anything at all to work in the f1 layer - although my scripts work fine with flash templates and text layers named f0, f1 - it just doesn’t work with Photoshop text layers.
Is there any documentation for creating dynamic text layers that work with CasparCG in Photoshop? Is it possible at all?