POV-Ray : Newsgroups : povray.advanced-users : Get image file name from the code : Re: Get image file name from the code Server Time
8 Jul 2024 19:41:39 EDT (-0400)
  Re: Get image file name from the code  
From: Zoly
Date: 28 Aug 2007 14:44:45
Message: <46d46d1d@news.povray.org>
I just want to create a name for the radiosity info with extension .rad but 
with the same name than the image that is being created. I already did it 
but I am assuming that the output file name is not changed through command 
line options or the .ini file and also I am assuming that the number of 
frames is not greater than a certain number. Remember that name of the 
output of a frame not only epends on the frame number but also on the total 
number of frames (the number of digits).

I have been programming during 25 years and I learnt that assumimg things in 
the code is not a good practice. I just wanted to be sure that hardcoding 
the file name was the only way to do it and that there is not a constant or 
system variable that gives the name of the file.

Cheers!

Zoly.

"Trevor G Quayle" <Tin### [at] hotmailcom> wrote in message 
news:web.46d2c81a21b8a3b2c150d4c10@news.povray.org...
> "Zoly" <zol### [at] kroncom> wrote:
>> Thank you for your illustration about file types, compression types and
>> naming conventions for frame images.
>>
>> Regarding my question, I guess that the answer is: No, it is not possible 
>> to
>> know the file name of the image that is being created from the SDL code.
>>
>> Regards,
>> Zoly.
>>
>
> Well yes and no I suppose.
>
> Read the docs "3.1.2.4.2  Output File Name" regarding the file name 
> options.
> However, if you are trying to get a scene to know the name of the output
> file automatically without hardcoding it, I don't think you can.
>
> Perhaps you can explain what you want to do and a solution can be found.
>
> -tgq
>
>


Post a reply to this message

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