berteh / synfig-import-labels

Generate Kinetic Typography (artistic subtitles) in Synfig, 2D OpenSource Animation Studio, or simply import your timings and labels (/subtitles).
GNU General Public License v2.0
19 stars 3 forks source link

problem finding template directory and parsing labels.txt #18

Open barabajagal65 opened 6 years ago

barabajagal65 commented 6 years ago

https://forums.synfig.org/t/synfig-import-labels-template-problem/8785?u=mzempel

berteh commented 6 years ago

Yes I do ! The generation of keyframes and objects seems to work just fine from the command line, but the generated Synfig file does not load in my Synfig 1.3.10... so I'll need to dig bit more deep.

what version of synfig do you use?

fyi attached is your corrected labels file (replace a few spaces with tabs to get the alignement right, but I supose they simply got lost in your copy paste).

To generate the file I simply create an empty project (saved as issue18/issue18.sifz in the commands below) save the labels file as issue18/labels.txt and run:

cd c/Program Files/Synfig/share/synfig/plugins/synfig-import-labels-master
python  sifzynfig-import-labels.py issue18/issue18.sifz issue18/labels.txt issue18/out.sifz

that outputs something like:

 reading labels from C:\Program Files\Synfig\share\synfig\plugins\synfig-import-labels-master\issue18/labels.txt
generating objects
added object 'NO'
added object 'Turning'
added object 'on'
added object 'RED'
added object 'NO FLIES APON FRED!!!'
added object 'Take'
...

and creates issue18/out.sifz ...which I cannot load so far but looks not so wrong after a quick look.

Reference files: labels.txt out.sif.zip (rename into sifz, or uncompress info .sif)