Search found 222 matches

by Fazek
Sat Sep 17, 2016 6:19 pm
Forum: Scripting
Topic: Get undefined value type from known channel?
Replies: 6
Views: 6565

Re: Get undefined value type from known channel?

Lua tables are very flexible. Instead of channel= bone.fAnimPos You can write ch_name= "fAnimPos" ... channel=bone[ch_name] So you don't really need to repeat the same code again and again for the different channels, you can use the channel name as a parameter in your loops. There are anim...
by Fazek
Thu Sep 01, 2016 3:57 pm
Forum: Scripting
Topic: A script to import TVPaint's CSV file format
Replies: 31
Views: 25375

Re: A script to import TVPaint's CSV file format

Export plugin upgrade: now it's stepping on a frame only if it's needed for the rendering: a big speedup if the animation is two-framed or more, or there are still poses etc. I also modified the recognition of the program version: I'm not using the AppVersion() call, but simply checking the existenc...
by Fazek
Wed Aug 31, 2016 5:39 pm
Forum: Scripting
Topic: A script to import TVPaint's CSV file format
Replies: 31
Views: 25375

Re: A script to import TVPaint's CSV file format

Hello synthsin75,
Yes, I noticed it too and probably I will change the current (.moho vs. .anme) solution to that.

About the abort functionality: perhaps if i exit the script after each rendered frame and force the system somehow to call it back again for the next frame... but it seems difficult.
by Fazek
Wed Aug 31, 2016 12:53 pm
Forum: Scripting
Topic: A script to import TVPaint's CSV file format
Replies: 31
Views: 25375

Re: A script to import TVPaint's CSV file format

Hello Ulrik, To do such things like capturing keystrokes, processing dialog messages etc. the script should return the control back to the main program and gain it again during the rendering. This is a simple menu script with a linear workflow. The user control you want is perhaps possible, but thes...
by Fazek
Sat Aug 27, 2016 6:50 pm
Forum: Scripting
Topic: A script to import TVPaint's CSV file format
Replies: 31
Views: 25375

Re: A script to import TVPaint's CSV file format

A new experimental export plugin is avaliable now. I've also fixed the import plugin: importing layers with empty first frames was buggy. About the export plugin: It exports the top level layers as separate layers. If a top level layer is a group, the plugin renders its contents together. But it exp...
by Fazek
Thu Aug 25, 2016 8:14 pm
Forum: Scripting
Topic: A script to import TVPaint's CSV file format
Replies: 31
Views: 25375

Re: A script to import TVPaint's CSV file format

cartoonmonkey wrote:Now if only Moho would export CSV as well...
:-D
Actually it's not a completely impossible wish. But only if Moho is able to render the current frame from lua. I'll check the possibilities, it's a good idea.
by Fazek
Tue Aug 16, 2016 4:50 pm
Forum: Scripting
Topic: A script to import TVPaint's CSV file format
Replies: 31
Views: 25375

Re: A script to import TVPaint's CSV file format

ulrik , please download and try the new version I just uploaded. The problem is the new directory structure of the CSV 1.1 format (I think TVPaint implemented this recently in version 11). cartoonmonkey , please, if you want to help me with testing, please try the new version with your files, and a...
by Fazek
Tue Aug 16, 2016 9:05 am
Forum: Scripting
Topic: A script to import TVPaint's CSV file format
Replies: 31
Views: 25375

Re: A script to import TVPaint's CSV file format

You can find a new version on the download page, I hope it's working now.
by Fazek
Tue Aug 16, 2016 5:30 am
Forum: Scripting
Topic: A script to import TVPaint's CSV file format
Replies: 31
Views: 25375

Re: A script to import TVPaint's CSV file format

The #Folder row is a new thing, I'll add support then.

Thanks
by Fazek
Mon Aug 15, 2016 7:52 pm
Forum: Scripting
Topic: A script to import TVPaint's CSV file format
Replies: 31
Views: 25375

Re: A script to import TVPaint's CSV file format

Thank you! I think this means there are more #something rows in your .csv file before the first #00000 numeric row. I will check it and make a workaround soon. I assumed the files are starting like this example: UTF-8, TVPaint, "CSV 1.0" Project Name, Width, Height, Frame Count, Layer Coun...
by Fazek
Fri Aug 12, 2016 10:22 pm
Forum: Scripting
Topic: A script to import TVPaint's CSV file format
Replies: 31
Views: 25375

Re: A script to import TVPaint's CSV file format

TVPaint is a pixel based program. it has layers like Photoshop, but each layer works on a timeline. The keys on the timeline are standalone, full-frame pictures. You cannot make motion tweens, rigged characters etc. with them. You must draw each motion steps manually. This program is best for tradit...
by Fazek
Fri Jul 22, 2016 10:40 am
Forum: Scripting
Topic: A script to import TVPaint's CSV file format
Replies: 31
Views: 25375

Re: A script to import TVPaint's CSV file format

I just uploaded a new version of this script into the original place. This new version can optionally set the document parameters, like field size, framerate and play duration from the CSV file. However, it still cannot open the files if there are international characters in the path name.
by Fazek
Wed Jun 22, 2016 8:45 pm
Forum: Scripting
Topic: A script to import TVPaint's CSV file format
Replies: 31
Views: 25375

Re: A script to import TVPaint's CSV file format

One important thing: on my machine with Windows 10, LUA can't open the files if their path contains characters outside of ASCII-7. So if you cannot open a file with this plugin, check the characters in the path name (ASCII-7 characters: basically the lower/upper case English alphabet + numbers + som...
by Fazek
Tue Jun 21, 2016 9:33 pm
Forum: Scripting
Topic: A script to import TVPaint's CSV file format
Replies: 31
Views: 25375

Re: A script to import TVPaint's CSV file format

You're right, the forum motor somehow modified the zip file. The zipping needed because the forum not accepted the .lua extension in the file name. I uploaded again, I hope it's good now.
by Fazek
Tue Jun 21, 2016 8:55 pm
Forum: Scripting
Topic: A script to import TVPaint's CSV file format
Replies: 31
Views: 25375

A script to import TVPaint's CSV file format

I've just made this menu item script. CSV is an export format of TVPaint. I already made similar import scrips for Blender and TVPaint itself. You can find these on the same forum too. Also you can use the CSV format in newer versions of Krita. You can find the script here: (27.08.2016: a new experi...