Page 1 of 1

Time and Frame Manager

Posted: Fri Apr 18, 2025 11:34 pm
by Elvissuperstar007
https://www.youtube.com/watch?v=0k9VZh7cARY
I made the limit 1 million frames can be increased more, in the video I accidentally made only 10 thousand, one thing is that my display in real time time counter got lost, I am not a coder, this is the first time I coded such a script myself I hope it will help you, if someone knows how to quickly fix the time counter I will be grateful, I tormented this miracle for two days.
Let me clarify, I coded in 3ds Max 2025, I don't know if it works in older versions, whoever understands, please add fixes and add yourself as an author to the script. Thanks in advance!

Re: Time and Frame Manager

Posted: Mon Apr 21, 2025 11:49 pm
by neonZorglub
Hi Elvissuperstar007,
Thanks for the script, that's very nice.

The problem with the time display seems to come from formattedPrint format, that expect an integer variable with this format parameter, instead of float.
This can be fixed by adding 'as integer' when calculating variables. (with parenthesis around the previous calculation)
The 4 lines to change are as follow:
local hours = (floor (secondsTotal / 3600)) as integer
local minutes = (floor ((secondsTotal - (hours * 3600)) / 60)) as integer
local seconds = (floor (secondsTotal - (hours * 3600) - (minutes * 60))) as integer
local framesLeft = (floor ((secondsTotal - floor secondsTotal) * currentFrameRate)) as integer

Here is the updated script:
Time and Frame Manager.zip
(1.19 KiB) Downloaded 23 times
Thanks

Re: Time and Frame Manager

Posted: Sun Apr 27, 2025 6:12 pm
by Elvissuperstar007
neonZorglub wrote: Mon Apr 21, 2025 11:49 pm Hi Elvissuperstar007,
Thanks for the script, that's very nice.

The problem with the time display seems to come from formattedPrint format, that expect an integer variable with this format parameter, instead of float.
This can be fixed by adding 'as integer' when calculating variables. (with parenthesis around the previous calculation)
The 4 lines to change are as follow:
local hours = (floor (secondsTotal / 3600)) as integer
local minutes = (floor ((secondsTotal - (hours * 3600)) / 60)) as integer
local seconds = (floor (secondsTotal - (hours * 3600) - (minutes * 60))) as integer
local framesLeft = (floor ((secondsTotal - floor secondsTotal) * currentFrameRate)) as integer

Here is the updated script:
Time and Frame Manager.zip
Thanks
Thank you, you corrected my clumsiness, but you forgot to add yourself as the author) I hope this script will help many

Re: Time and Frame Manager

Posted: Mon Apr 28, 2025 7:35 pm
by Elvissuperstar007
Elvissuperstar007 wrote: Sun Apr 27, 2025 6:12 pm
neonZorglub wrote: Mon Apr 21, 2025 11:49 pm Hi Elvissuperstar007,
Thanks for the script, that's very nice.

The problem with the time display seems to come from formattedPrint format, that expect an integer variable with this format parameter, instead of float.
This can be fixed by adding 'as integer' when calculating variables. (with parenthesis around the previous calculation)
The 4 lines to change are as follow:
local hours = (floor (secondsTotal / 3600)) as integer
local minutes = (floor ((secondsTotal - (hours * 3600)) / 60)) as integer
local seconds = (floor (secondsTotal - (hours * 3600) - (minutes * 60))) as integer
local framesLeft = (floor ((secondsTotal - floor secondsTotal) * currentFrameRate)) as integer

Here is the updated script:
Time and Frame Manager.zip
Thanks
Thank you, you corrected my clumsiness, but you forgot to add yourself as the author) I hope this script will help many
You dropped the octane functions in max script, I have a crazy idea! I don't guarantee it, but if it works at least 80% I'll ask to integrate it into octane, well with your corrections.. I'm still a clumsy person