POV-Ray : Newsgroups : povray.general : accessing Input_File_Name from inside a scenefile Server Time
19 Nov 2024 03:31:47 EST (-0500)
  accessing Input_File_Name from inside a scenefile (Message 1 to 3 of 3)  
From: Defective
Subject: accessing Input_File_Name from inside a scenefile
Date: 17 Apr 2002 14:51:45
Message: <3cbdc441$1@news.povray.org>
Is there any way to get the name of the file being rendered so that I can
stick it in a text object?

I'm working on an include file that sets up my camera & lights and I've
added the ability to put information about the scene into the image (using
screen.inc).  I'd like to add a title to the image while I'm at it.

Scott


Post a reply to this message

From: Jan Walzer
Subject: Re: accessing Input_File_Name from inside a scenefile
Date: 17 Apr 2002 15:21:06
Message: <3cbdcb22$1@news.povray.org>
before #include define a variable in
all your files $FNAME="foobar.pov" ?


Post a reply to this message

From: Defective
Subject: Re: accessing Input_File_Name from inside a scenefile
Date: 17 Apr 2002 21:41:28
Message: <3cbe2448$1@news.povray.org>
That's how I'm doing it now.

Unfortunately, when I'm working on anything complicated, I tend to resave
the files with changed names so I'll be able to back up a step or two when
needed.  (foobar.pov --> foobar2.pov --> foobar3.pov ...) Whenever I do
this, I also have to change the variable.

There's GOTTA be a way to do this...

Scott

"Jan Walzer" <jan### [at] lzernet> wrote in message
news:3cbdcb22$1@news.povray.org...
> before #include define a variable in
> all your files $FNAME="foobar.pov" ?
>
>


Post a reply to this message

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