Page 2 of 2

Re: CSV format importer script for TVPaint

Posted: 29 Aug 2016, 08:21
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.

Re: CSV format importer script for TVPaint

Posted: 29 Aug 2016, 09:05
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

Re: CSV format importer script for TVPaint

Posted: 29 Aug 2016, 09:17
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.

Re: CSV format importer script for TVPaint

Posted: 30 Aug 2016, 10:05
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

Re: CSV format importer script for TVPaint

Posted: 30 Aug 2016, 12:06
by leonferrara
Hello :)
Guys
I am Leon Ferrara from New York city a newbie in this forum. I want say thank to all of you that take parts in this discussion. Because I got many information able issue that I wanted.
:) :)

Re: CSV format importer script for TVPaint

Posted: 30 Aug 2016, 12:08
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.

Re: CSV format importer script for TVPaint

Posted: 31 Aug 2016, 06:11
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

Re: CSV format importer script for TVPaint

Posted: 31 Aug 2016, 07:19
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.