Time and Frame Manager

3D Studio Max Plugin (Export Script Plugins developed by [gk] and KilaD; Integrated Plugin developed by Karba)
Forum rules
Please post only in English in this subforum. For alternate language discussion please go here http://render.otoy.com/forum/viewforum.php?f=18
Post Reply
User avatar
Elvissuperstar007
Licensed Customer
Posts: 2495
Joined: Thu May 20, 2010 8:20 am
Location: Ukraine/Russia
Contact:

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!
Attachments
Time and Frame Manager.rar
(1.13 KiB) Downloaded 17 times
win 7 /64x C2Quad 6600 2.4/ Nvidia 9800 GX2 1gb 512 bit + Asus 480 GTX/ DDR2 8Gb / NVIDIA 460 GTX 2GB/2x NVIDIA 580 GTX 3GB
Page octane render " В Контакте " http://vkontakte.ru/club17913093
neonZorglub
OctaneRender Team
Posts: 1002
Joined: Sun Jul 31, 2016 10:08 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
(1.19 KiB) Downloaded 16 times
Thanks
User avatar
Elvissuperstar007
Licensed Customer
Posts: 2495
Joined: Thu May 20, 2010 8:20 am
Location: Ukraine/Russia
Contact:

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
win 7 /64x C2Quad 6600 2.4/ Nvidia 9800 GX2 1gb 512 bit + Asus 480 GTX/ DDR2 8Gb / NVIDIA 460 GTX 2GB/2x NVIDIA 580 GTX 3GB
Page octane render " В Контакте " http://vkontakte.ru/club17913093
User avatar
Elvissuperstar007
Licensed Customer
Posts: 2495
Joined: Thu May 20, 2010 8:20 am
Location: Ukraine/Russia
Contact:

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
win 7 /64x C2Quad 6600 2.4/ Nvidia 9800 GX2 1gb 512 bit + Asus 480 GTX/ DDR2 8Gb / NVIDIA 460 GTX 2GB/2x NVIDIA 580 GTX 3GB
Page octane render " В Контакте " http://vkontakte.ru/club17913093
Post Reply

Return to “Autodesk 3Ds Max”