CSV format importer script for TVPaint

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

Re: CSV format importer script for TVPaint

Post by fazek »

It seems George has a problem with the space characters in filenames. This is a new version of the debug script, please check it. Thanks.
Attachments
import_csv_debug.grg
(15.04 KiB) Downloaded 2293 times
ulrik
Posts: 37
Joined: 10 Sep 2006, 08:59
Location: Sweden
Contact:

Re: CSV format importer script for TVPaint

Post by ulrik »

Yes, now it's working, what did you do? Had it something to do with spaces between characters?
I will try this new script on a larger project and let you know how it goes, thank you!
Here is the screenshots again for loading the same project as before:
https://dl.dropboxusercontent.com/u/215 ... 0debug.zip" onclick="window.open(this.href);return false;

Cheers / Ulrik
fazek
Posts: 24
Joined: 07 Feb 2016, 14:54

Re: CSV format importer script for TVPaint

Post by fazek »

Hello Ulrik,

Thanks for the help. The problem was if there are spaces in filenames, the name must be between quotes for some George commands even if it's a variable. Strange behaviour, maybe because George is a macro language.
instead of:

Code: Select all

file= "C:\path with spaces\file"
tv_readtextfile row file
you must use something like:

Code: Select all

file= "C:\path with spaces\file"
file= '"'file'"'
tv_readtextfile row file
The freeze happened because of the spaces in the name: the tv_readtextfile returned an error message instead of the file contents and the script was not able to handle it and went into an infinite loop.
ulrik
Posts: 37
Joined: 10 Sep 2006, 08:59
Location: Sweden
Contact:

Re: CSV format importer script for TVPaint

Post by ulrik »

Ok, I think I understand.
The latest debug script seems to work ok, but it does not make "a new project" if I chose it in the message window
fazek
Posts: 24
Joined: 07 Feb 2016, 14:54

Re: CSV format importer script for TVPaint

Post by fazek »

Ulrik: oh OK :D I guess it's the space character again... Now it's surely in the name of the scene. Fortunately you are using spaces everywhere, so these bugs are coming out.
Try this new debug version please. Some other possible bugs are also fixed.
Attachments
import_csv_debug.grg
(15.73 KiB) Downloaded 2234 times
ulrik
Posts: 37
Joined: 10 Sep 2006, 08:59
Location: Sweden
Contact:

Re: CSV format importer script for TVPaint

Post by ulrik »

Beautiful Fazek, this one is even better, and you have removed the "debug" messages it seems.
Thank you for all your effort, it's much appreciated!

Regards Ulrik
fazek
Posts: 24
Joined: 07 Feb 2016, 14:54

Re: CSV format importer script for TVPaint

Post by fazek »

I'd like to thank for your help too, without your feedbacks it could have been very difficult to find these bugs.

I've also refreshed the downloadable scripts in the initial post of this topic, so you can upgrade to the new "official" versions too.
Post Reply