POV-Ray : Newsgroups : povray.windows : feature request: disable file overwrite : Re: feature request: disable file overwrite Server Time
15 Oct 2024 02:16:52 EDT (-0400)
  Re: feature request: disable file overwrite  
From: clipka
Date: 27 Jan 2017 06:52:46
Message: <588b348e$1@news.povray.org>
Am 27.01.2017 um 09:47 schrieb Sherry K. Shaw:
> clipka wrote:
>>
>> Hm... this has me thinking: Maybe a smarter way would be to allow
>> certain placeholders in the file name, which would be replaced by the
>> current date and/or time when the render was started (first frame in
>> case of an animation sequence).
>>
>> This would entirely avoid the hassle of checking whether a file of the
>> same name already exists, and yet provide a convenient way to prevent
>> accidental overwriting of existing output files.
>>
> 
> Might something like this be implemented as an INI file option?  Perhaps
> to rename the file (including date and time) at the end of the render,
> or possibly to make a backup copy?  The concept strikes me as rather
> INI-ish.

Post-frame shell-out (`Post_Frame_Command=...`) should be able to do
this. It would be specific to a particular operating system though.

It should also be possible to use pre-frame shell-out
(`Pre_Frame_Command`) to back up an existing file of the same name.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.