Ilya Razmanov <ily### [at] gmailcom> wrote:
> Well, don't quite like this solution since it's not immune to simple
> file rename.
It ought to be.
Write a tiny .pov file that outputs the value of input_file_name to the debug
stream. Rename the file. Render it again.
Since you're opening the file as the main .pov file, that's what input_file_name
gets defined as.
If you write another .pov file that INCLUDES the first .pov file, then it's the
main file that gets its filename assigned to input_file_name.
That's why this ought to be a good solution for you.
Just try it - you'll see.
- BW
Post a reply to this message
|