"localtime as string" should be (localtime as string). Anything inside " " is a string so by putting localtime as string in " " it will return "localtime as string". See the following example blue indicates the returned results to the maxscript listener."localtime as string"
"localtime as string"
(localtime as string)
"4/8/2009 10:03:28 AM"
rendOutputFilename = fullfilename + (localtime as string) + ".tga"-Eric

ZeBoxx2

04-08-2009, 04:41 PM

if you want to be a bit more flexible in the time stamp written out, use getLocalTime(). It's a bit more work to cast to a string to use, but well worth it.

-- d: short date
-- D: long date
-- t: short time
-- T: long time
-- f: full Date/Time with short time
-- F: full Date/Time with long time
-- g: general Date/Time with short time
-- G: general Date/Time with long time
-- M or m: month day
-- R or r: RFC1123
-- s: sortable Date/Time that conforms to ISO 8601
-- u: universal sortable Date/Time
-- U: full Date/Time with long time. (This format is the same as F, but it uses universal GMT time.)
-- Y or y: year month