CSV format importer script for TVPaint
Re: CSV format importer script for TVPaint
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
Re: CSV format importer script for TVPaint
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
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
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:
you must use something like:
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.
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
Code: Select all
file= "C:\path with spaces\file"
file= '"'file'"'
tv_readtextfile row file
Re: CSV format importer script for TVPaint
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
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
Ulrik: oh OK 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.
Try this new debug version please. Some other possible bugs are also fixed.
- Attachments
-
- import_csv_debug.grg
- (15.73 KiB) Downloaded 2234 times
Re: CSV format importer script for TVPaint
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
Thank you for all your effort, it's much appreciated!
Regards Ulrik
Re: CSV format importer script for TVPaint
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.
I've also refreshed the downloadable scripts in the initial post of this topic, so you can upgrade to the new "official" versions too.