Notifications
Clear all

[Closed] Script that writes a txt file with a given content?

hy comunity,

i´m currently working on a project setup close to what Ross Marshall´s Project Setup does: . But I want max not to create only a folder structure but text files with sertain information as well (like a framestamp.txt wich can be copypasted into VRay´s framestamp for detailed preview information…)

so something like this:

createfile (“VRayFrameStamp”+”.txt”)

with this content in the txt file:
Frame: %frame | Render Time: %rendertime | Finished: %time | Date: %date | Filename: %filename | Computer: %computername

any hints on how to code this ?

thanks in advance and regards

anselm

1 Reply

Look in the reference for “External files methods” and “Format”. Basically you can create a new text file named as you wish, then you write in it what you need with the format … to:… command.