Page 1 of 2

SavePlace ReLoadPlace Button Set

Posted: 09 Mar 2015, 20:58
by Svengali
SavePlace ReLoadPlace.jpg
SavePlace ReLoadPlace.jpg (4.97 KiB) Viewed 11363 times
(Inspired by a feature request by Mads Juul << HERE >> ) This button pair lets you save the current place in a Project and reload to that same place at a later time.

Example:

You have a Previously Saved Project open displaying a specific image on screen. You press the SavePlace button and information about the Current Project Name, Current Clip, Current Layer, Current Frame is saved to the Config.ini file.

NOTE: The SavePlace button only works with Projects that have already been named and saved at least once and you will be warned if it was not yet saved...

At any point in the future, even after exiting and reopening TVPaint, you can immediately press the ReLoadPlace button to access the saved info from the Config.ini file, which will AUTOMATICALLY RELOAD the saved Project, saved Clip, saved Layer and saved Frame. If the Project is already open but at some other location, it will jump immediately to the saved Clip, saved Layer and saved Frame location.

What Gets Saved?

The Project filename (including the complete path to the file) the number of the active Clip, the number of the active Layer and the number of the active Frame is stored as a single string parsed by spaces.

If the Project is significantly modified (Clip, Layer and/or frames are INSERTED) the the ReLoad Button might not return you to the same location that was saved.

How are the Buttons Used?
Typically, the SavePlace and ReLoadPlace buttons would be used to save your current working location, then return there when you begin working the next day. IMPORTANT: remember that the Project should already have been saved at least once, to establish the path where you want the SavePlace button to save in the future.

Future?
Ideally, as suggested by Mads, the File SAVE and LOAD commands should store and retrieve the current Clip, Layer and Frame in effect when ANY Project is saved, then offer to restore to the sameClip, Layer, Frame location when the Project is reloaded.

Sven

(Thanks Paul for testing this button set! 8) )

Re: SavePlace ReLoadPlace Button Set

Posted: 09 Mar 2015, 22:32
by schwarzgrau
Thank you svengali this is a great timesaver till the feature gets added

Re: SavePlace ReLoadPlace Button Set

Posted: 09 Mar 2015, 22:40
by Paul Fierlinger
I just love the way it works because it doesn't just help me to get quickly to my last worked on place upon opening TVP, but I continue to use it as I work back and forth along my timeline. Very useful indeed.

Re: SavePlace ReLoadPlace Button Set

Posted: 11 Mar 2015, 14:49
by Paul Fierlinger
I just found a way to take this to the last step and make the plugin not just take me to the very last frame I had ended with, but spread out the timeline to "fit the frame" because that still had to be done manually every single time I used the plugin. I added Key: Timeline: Fit to Frame under the .grg script in the edit mode of the tvpx and it works nicely.

Re: SavePlace ReLoadPlace Button Set

Posted: 13 Apr 2021, 00:03
by johnfromncl
Hi Sven
This is brilliant. (I'm currently going through 'Contents Sharing' and picking up loads of useful information - yours is the latest gem I've come across.)
These buttons of yours solves what has been a bit of an issue for me, that I haven't been aware of being able to solve in any other simple way.
Many thanks
John

Re: SavePlace ReLoadPlace Button Set

Posted: 13 Apr 2021, 04:29
by Svengali
John, thank you for the kind words...
I'm posting a little update to the SavePlace ReloadPlace button set because Paul requested that I refresh the scripts. I added a popup window for both buttons that reveal the "save&load" information as shown below.

NOTE TO TVPAINT PROGRAMMERS: The original request from Mads to add this feature to TVPaint's save and load operations really is a good one, even if only as a User's Option to have or have not:
Remember Current Clip and Current Frame in Project

Post by Mads Juul » Fri Feb 27, 2015 6:36 am
If I open a previous saved project, It always opens of first frame of first Clip.

I would like that the current clip and current frame is saved when saving a project.

This means if I save a project on frame 200 in clip 20, then when I the next day opens TVPaint the project opens on frame 200 in clip number 20.

Kind Regards
-Mads
NewPlace Save&Load3.png
NewPlace Save&Load3.png (12.31 KiB) Viewed 11165 times
Save&LoadPopupdata3.png
Save&LoadPopupdata3.png (10.89 KiB) Viewed 11165 times

sven

EDIT 4/15/21: I've updated the "Save&Reload.tvpx" file so that the popup message is dismissed with a simple "click OK to continue". Please download and install this update if you installed the earlier version.

Re: SavePlace ReLoadPlace Button Set

Posted: 13 Apr 2021, 12:07
by johnfromncl
Thanks Sven
Works nicely.
I may be going over the top now, but I've placed the buttons from both of your versions into the old panel, so I can swap between or bring back two places. (Obviously, the old set does not give the location information.) I renamed slightly, so it is still just two rows of icons of space taken up.
Two locations save reload.png
Two locations save reload.png (10.75 KiB) Viewed 11151 times
Those places can be in the same or different projects. I notice that the buttons will even open a project if it is not already open.
I happen to number my frames from 1 - and that would be shown as 0 by the information box that comes up. Similarly, my first layer defaults to Untitled1 - rather than 0. Similarly with clips. These are small things I can easily live with.
Thanks again
John

Re: SavePlace ReLoadPlace Button Set

Posted: 15 Apr 2021, 13:26
by D.T. Nethery
Svengali wrote: 13 Apr 2021, 04:29
I'm posting a little update to the SavePlace ReloadPlace button set because Paul requested that I refresh the scripts. I added a popup window for both buttons that reveal the "save&load" information as shown below.

NOTE TO TVPAINT PROGRAMMERS: The original request from Mads to add this feature to TVPaint's save and load operations really is a good one, even if only as a User's Option to have or have not:
+1 for adding the feature to TVPaint. (in 2015 it was "To-Do" listed in the original request from Mads Juul)

In the meantime, thanks for another very useful custom panel , Svengali !

Re: SavePlace ReLoadPlace Button Set

Posted: 15 Apr 2021, 14:55
by Xavier
D.T. Nethery wrote: 15 Apr 2021, 13:26 +1 for adding the feature to TVPaint. (in 2015 it was "To-Do" listed in the original request from Mads Juul)

In the meantime, thanks for another very useful custom panel , Svengali !
Here's what I'd like to say : I'm the mule :mrgreen:
mule-chargee.jpg
mule-chargee.jpg (45.14 KiB) Viewed 11126 times

Re: SavePlace ReLoadPlace Button Set

Posted: 15 Apr 2021, 14:55
by Xavier
Just kidding. Thanks guys for all your contents and suggestions :wink:

Re: SavePlace ReLoadPlace Button Set

Posted: 15 Apr 2021, 15:23
by D.T. Nethery
Xavier wrote: 15 Apr 2021, 14:55 Just kidding. Thanks guys for all your contents and suggestions :wink:
Unfortunately, you got stuck with a very long pre-existing "To Do" list. Many of these requests have been around for years , so they are not new requests, they are old requests that were "To-Do listed" , but never implemented. From time to time the same request comes up again, so some of us long-time users remember:
"Oh, yeah, whatever happened to that request ? That was a good idea."


Here's my suggestion for responding to New Feature/Improvements requests:

Response #1: "Thank you, that's an interesting idea , we will consider whether it is possible to implement it , but as of this time it is not officially on our To-Do list and we are not sure if this feature will be implemented."

This acknowledges the user's request , but no expectations are attached to the request. Everyone understands that it might be implemented in the future, it might not. Wait and see. (but feel free to ask about it again in 6 months - to - 1 year if nothing has happened ... although the answer you receive may be the same.)

Response #2 : "To-Do Listed" .

And by that , it is understood that "To-Do listed" means: "The request is doable and it will be implemented within 3 - 6 months, if not sooner." (not left dangling on the "To-Do" list for 3 - 6 years.)

If it turns out that unexpected complications arise, the topic where the request was officially "To-Do listed" can have an update posted from TVPaint that says:
"This feature request is turning out to be more difficult to implement than we expected. It is no longer on the To-Do List , although we may return to the idea at some point in the future."

.

Re: SavePlace ReLoadPlace Button Set

Posted: 16 Apr 2021, 00:37
by tribute27
Svengali wrote: 13 Apr 2021, 04:29 John, thank you for the kind words...
I'm posting a little update to the SavePlace ReloadPlace button set because Paul requested that I refresh the scripts. I added a popup window for both buttons that reveal the "save&load" information as shown below.

NOTE TO TVPAINT PROGRAMMERS: The original request from Mads to add this feature to TVPaint's save and load operations really is a good one, even if only as a User's Option to have or have not:
Remember Current Clip and Current Frame in Project

Post by Mads Juul » Fri Feb 27, 2015 6:36 am
If I open a previous saved project, It always opens of first frame of first Clip.

I would like that the current clip and current frame is saved when saving a project.

This means if I save a project on frame 200 in clip 20, then when I the next day opens TVPaint the project opens on frame 200 in clip number 20.

Kind Regards
-Mads
NewPlace Save&amp;Load3.png
Save&amp;LoadPopupdata3.png


sven
hi! I wanted to try this out but seem to hit a bump. Whenever I click the SavePlace button, it seems to lock and freeze the program, and remain on this pop-up. I've tried clicking Enter and Esc but it didn't work--it seems to be stuck in a loop somehow so I needed to End task via task manager for it. I'm on Windows 10 an using tvp 11.5.1 WIBU
SaveplaceTest.png
SaveplaceTest.png (4.65 KiB) Viewed 11103 times

Re: SavePlace ReLoadPlace Button Set

Posted: 16 Apr 2021, 01:36
by Svengali
tribute27 wrote: 16 Apr 2021, 00:37 hi! I wanted to try this out but seem to hit a bump. Whenever I click the SavePlace button, it seems to lock and freeze the program, and remain on this pop-up. I've tried clicking Enter and Esc but it didn't work--it seems to be stuck in a loop somehow so I needed to End task via task manager for it. I'm on Windows 10 an using tvp 11.5.1 WIBU
Looking at the popup, I see that you probably tried to save a project that had not yet been saved. "Untitled" means that it was a new file with a "\" place holder title. The script is supposed to warn you in that circumstance, then EXIT... so I have to look at the error trapping again, and will probably do a rewrite.

Thanks for the feedback and I apologize for the trouble. :?

Will post a fix if needed.

sven

Re: SavePlace ReLoadPlace Button Set

Posted: 16 Apr 2021, 01:46
by tribute27
Looking at the popup, I see that you probably tried to save a project that had not yet been saved. "Untitled" means that it was a new file with a "\" place holder title. The script is supposed to warn you in that circumstance, then EXIT... so I have to look at the error trapping again, and will probably do a rewrite.

Thanks for the feedback and I apologize for the trouble. :?

Will post a fix if needed.

sven
Oh! I saved the file with the default name just as a quick test. I've tried it first on some project files from my work which had a huge file size so I was wondering if that caused the freeze.

And no worries at all, I'm not expecting anything. i downloaded the original script and that worked. Thanks for all your custom panels in general, they're all very good tools!

Re: SavePlace ReLoadPlace Button Set

Posted: 16 Apr 2021, 04:05
by Svengali
tribute27 wrote: 16 Apr 2021, 01:46 Oh! I saved the file with the default name just as a quick test. I've tried it first on some project files from my work which had a huge file size so I was wondering if that caused the freeze.
And no worries at all, I'm not expecting anything. i downloaded the original script and that worked. Thanks for all your custom panels in general, they're all very good tools!
tribute27, The "apparent freeze" may have been caused by an extended delay loop for the popup message, which on some machines took much longer than intended (processor speed dependent).
Instead, the message now requires a click OK to continue. If you have a minute, download the updated version... try it and let me know if your problem is solved. Thanks again for the feedback.

sven