CSV format import/export script for Moho (Anime Studio)

Post Reply
fazek
Posts: 24
Joined: 07 Feb 2016, 14:54

CSV format import/export script for Moho (Anime Studio)

Post by fazek »

This is a menu script addon for Moho/Anime Studio (11 and above, but probably working with older versions too). It imports scenes in TVPaint's CSV format.

Unzip the file and copy the fa_import_csv.lua file into your Anime Studio contents folder, for example to the scripts/menu/Image directory. After starting Anime Studio, you can find the new "Import CSV animation..." menu item in the Scripts/Image menu.

It imports the contents of the file into a new Group Layer. Inside the group layer it creates Switch Layers with the image instances in them.

22 JULY 2016, Version 1.1: it can import document settings (field, fps, duration) now.
16 AUG 2016, Version 1.2: support for the Folder arguments of CSV 1.1 / Version 1.3: advanced search for the folder path
27 AUG 2016, Version 1.4: bugfix for empty frames, experimental export plugin 1.0
01 SEPT 2016: experimental export plugin 1.1: faster rendering, bugfixes
Attachments
fa_import_csv.zip
(17.64 KiB) Downloaded 2469 times
fa_export_csv.zip
(16.71 KiB) Downloaded 2469 times
Last edited by fazek on 01 Sep 2016, 14:56, edited 9 times in total.
Elodie
Posts: 13912
Joined: 06 Jan 2009, 09:53
Location: Metz

Re: CSV format importer script for Anime Studio

Post by Elodie »

Thank you for sharing this. There are other Anime Studio users here, no doubt it can be helpful !
fazek
Posts: 24
Joined: 07 Feb 2016, 14:54

Re: CSV format importer script for Anime Studio

Post by fazek »

Updated to a new version. It can optionally import the document parameters, like field size, frame rate and play duration now.
User avatar
CartoonMonkey
Posts: 1087
Joined: 01 Jun 2007, 18:47
Location: Portland, Oregon
Contact:

Re: CSV format importer script for Anime Studio

Post by CartoonMonkey »

Not working for me here on the latest version of AS (Moho) x64...
Image
fazek
Posts: 24
Joined: 07 Feb 2016, 14:54

Re: CSV format importer script for Anime Studio

Post by fazek »

Thanks to CartoonMonkey, I've added a support for the Folder parameters of CSV version 1.1.

About the path recognition: This Folder parameter is a nice feature, but it's also a weak spot if you transfer the files from one computer to another. The old solution was very robust for this. Now if the Folder row exists in the csv file, the program first tries to load the files from the full paths provided. If this fails, it tries to load from the last folder name of the provided path, while replacing its parents with the base path of the CSV file. If this also fails, it tries to load from the old "something.frames" folder. If you still can't load your something.csv with this, try to create a something.frames folder and copy all of your png files there.

UPDATE: v1.3: added more advanced folder search.
User avatar
CartoonMonkey
Posts: 1087
Joined: 01 Jun 2007, 18:47
Location: Portland, Oregon
Contact:

Re: CSV format importer script for Anime Studio

Post by CartoonMonkey »

Ah, this version is working great Fazek! Thank you!
Sorry about the time in between testing, I have a rather full schedule at the moment.
Post Reply