About this site
ScriptSpot is a diverse online community of artists and developers who come together to find and share scripts that empower their creativity with 3ds Max. Our users come from all parts of the world and work in everything from visual effects to gaming, architecture, students or hobbyists.
Comments
thank you all
thank you all for yours inputs I didn't know timeStamp() function however what I wanted to do is real time chronometre but it seems impossible since even max render counter is not live :)
elapsed time + time left?
As I remember how Max measure elapsed time and time left for rendering statistic, in scripting it may look something like:
In other words (a bit fake) the calculation of the time left is based on the last elapsed time. Not perfect but better than nothing.
my recent MAXScripts RSS (archive here)
Use the progressbar control.
Use the progressbar control. I think that you can't calculate how long will take the loop execution. You can use counter and can show in label "processed/total count".
Tools and Scripts for Autodesk 3dsMax
You can use timeStamp() to
You can use
to get the milliseconds since midnight I think, or use
to get date and time as a string. Do this at the start and end of your loop and calculate the difference (With
localTime
you'll have to do some string formatting, e.g. withsubstring
and withtimeStamp()
you'd have to convert it to seconds, minutes etc. by division)Cheers
Never get low & slow & out of ideas