Using George to access CSV Export Information?

A forum dedicated to George scripting questions
Post Reply
Gary
Posts: 26
Joined: 12 May 2015, 13:33

Using George to access CSV Export Information?

Post by Gary »

Has anyone tried something like this? Basically attempting to either use George to export a TVPaint csv to read or just using commands that can give you access to all of the same info.

I'm figuring out how to get most of the info already, but one thing in particular I'm interested in figuring out is how TVPaint compares frames to know when a frame is a hold. When you export a csv file, it knows whether or not a frame has changed and only exports the actual changes. I'm looking to replicate a similar process with a George script however as far as I can see there aren't commands in George to either use the csv export system or to check if frames have changed.

Can anyone help?
User avatar
Fabrice
Posts: 10077
Joined: 17 Jul 2007, 15:00
Contact:

Re: Using George to access CSV Export Information?

Post by Fabrice »

Hi Gary, we will look into it tomorrow and come back to you.
Fabrice Debarge
Gary
Posts: 26
Joined: 12 May 2015, 13:33

Re: Using George to access CSV Export Information?

Post by Gary »

That'd be great Fabrice, thanks!
User avatar
Fabrice
Posts: 10077
Joined: 17 Jul 2007, 15:00
Contact:

Re: Using George to access CSV Export Information?

Post by Fabrice »

sorry I'm missing a few informations as we were working on our servers today.
I will answer only next week :(
Fabrice Debarge
User avatar
Eric Scholl
Posts: 1303
Joined: 04 Apr 2011, 14:40

Re: Using George to access CSV Export Information?

Post by Eric Scholl »

Hi Gary,
Gary wrote:I'm interested in figuring out is how TVPaint compares frames to know when a frame is a hold
You can do that using the command : tv_exposureinfo iPosition
It gives you the type of the image at position iPosition in the timeline.

Results can be :

"None" = is out of the layer bounds
"Exposure" = is a "hold"
"Head" = is the start of a new image
"Faux-Fixe" = is a "hold" using a "Faux-Fixe"
Gary
Posts: 26
Joined: 12 May 2015, 13:33

Re: Using George to access CSV Export Information?

Post by Gary »

Ah, that's great. Thanks guys!
Just to follow up, that's what it returns for the latest TVPaint Pro, right? I'm currently testing on Basic 10 and for holds as well as faux-fixes it's giving me

Code: Select all

Exposure 0 0
Where the first zero changes to match the Faux-Fixe value (if there is one) but I don't know what the other corresponds to. Is that something I'll still see in the latest version, and if it is could you clarify what the numbers reflect?

Cheers!
User avatar
Eric Scholl
Posts: 1303
Joined: 04 Apr 2011, 14:40

Re: Using George to access CSV Export Information?

Post by Eric Scholl »

Gary wrote:Ah, that's great. Thanks guys!
Just to follow up, that's what it returns for the latest TVPaint Pro, right? I'm currently testing on Basic 10 and for holds as well as faux-fixes it's giving me

Code: Select all

Exposure 0 0
Where the first zero changes to match the Faux-Fixe value (if there is one) but I don't know what the other corresponds to. Is that something I'll still see in the latest version, and if it is could you clarify what the numbers reflect?

Cheers!
You're right about the faux-fixes, so here the good results :

"None" = is out of the layer bounds
"Exposure x y" = is a "hold", x is the fauxfixe value, y is a unused value (reserved for the future, always 0 for now)
"Head" = is the start of a new image

This is how it works for all versions, including the latest one.
Gary
Posts: 26
Joined: 12 May 2015, 13:33

Re: Using George to access CSV Export Information?

Post by Gary »

Perfect! I already having this in a script exporting some stuff for us now, thanks!
Post Reply