Wow, many thanks!
I have no programming knowledge and I have no Idea how to edit it. I tried to open the CSC file with an editor (WordPad, Notepad ++) but only an incomprehensible cascade of characters appeared to me.
I can't even figure out which of the two versions is the best, ie the one above(
def main():
doc.Flush()
) or the one below(
def main():
doc.FlushUndoBuffer()
).
If I could have an attached version it would be great.
Anyway, the question was about "How to flush memory in C4D" and not specifically only about my old script. It was only an example. I asked if there are other methods, maybe more up-to-date and effective, to make the memory flush, because - as I said, this that I attached was just an old script.
Many thanks!