Forum: Poser Python Scripting


Subject: How do I write to a file?

Anthony Appleyard opened this issue on Jul 17, 2021 ยท 9 posts


FVerbaas posted Fri, 13 August 2021 at 11:39 AM Forum Coordinator

Maybe the file will be closed at some point automatically, most likely when 'filepath' is redefined or scope does not exist anymore. I think that from a point of process control it is better to close consciously once you do not need to write anymore. Less potential collision, incomplete files because data is still in a buffer, and so on.