Check for unsaved changes

A forum dedicated to George scripting questions
Post Reply
User avatar
kaspar128
Posts: 20
Joined: 12 Feb 2013, 15:18
Location: Amsterdam

Check for unsaved changes

Post by kaspar128 »

Is there George or SDK-method to see if a tvpaint-project has any unsaved changes? In some other programs they call an unsaved workfile, a 'dirty' workfile, or so..
I have searched, but I cannot find anything in the SDK or George-library.
I need to do something like this:

Code: Select all

if (tv_project_has_unsaved_changes == true) {
    tv_save_workfile(filename)
}
Cheers & Thanks in advance!
User avatar
Thierry
Site Admin
Posts: 2744
Joined: 07 Jan 2013, 08:28

Re: Check for unsaved changes

Post by Thierry »

There isn't any command for that indeed.
I'll add it to the list, but I cannot guarantee it will be done though.
Si votre question a trouvé réponse, marquez votre sujet comme Résolu.
If your question has been answered, mark your topic as Solved.
User avatar
kaspar128
Posts: 20
Joined: 12 Feb 2013, 15:18
Location: Amsterdam

Re: Check for unsaved changes

Post by kaspar128 »

Thanks!
Hopefully it gets implemented, as It would be a handy feature!
Post Reply