ZBrushCentral

Creating Log File & Grabbing the Time

Hello all,
I’m trying to find a way to make a little log file for my scripts with time stamps. Is there a way to grab the current system time (or even application time) when a user presses a button? I cold find anything in the command reference or on the forums here. Any ideas?

Thanks

E.

Read about the ZBrushInfo command which gives you elapsed time in seconds from start of app.

Sven

That should do it. Thanks!

One thing to mention is that if you are using [MemSaveToFile to write your log file then any value (including 0) for the ‘overwrite?’ argument will overwrite an existing file.

To NOT overwrite an existing file use this form:

[MemSaveToFile, My_MemBlock_Name, "logfile.txt"]

To overwrite an existing file:

[MemSaveToFile, My_MemBlock_Name, "logfile.txt", 1]

HTH,

Thanks for that, Marcus. Saved me some debugging time. :slight_smile: