POV-Ray : Newsgroups : povray.general : Returning the file name. : Re: Returning the file name. Server Time
29 Jul 2024 20:13:26 EDT (-0400)
  Re: Returning the file name.  
From: Reactor
Date: 13 Sep 2010 20:15:01
Message: <web.4c8ebe4561d0e05a6a99b6f80@news.povray.org>
Christian Froeschlin <chr### [at] chrfrde> wrote:
> Stephen wrote:
>
> > Thanks for your reply Le I thought that be the case but I was hoping
> > that there was some undocumented function that everyone but me knew.
>
> I don't think so. What you can do, though, is call POV-Ray from
> the command line where you can control the file names and even pass
> them to the scene via generated include file.
>
> > It is a slight pain to change the code manualy as I save my files
> > incrementally, a lot, as I make changes in the scene.
>
> Maybe source control should be integrated into the Windows editor ;)

That actually crossed my mind a while ago - making a full IDE type environment
for POV-ray.  I like the idea of having a project file that tracks the scene
files, included files, images, etc.  Even better if it has the ability to jump
between identifier definitions and their references across files...

At one point I was looking into existing IDEs that have the ability to syntax
highlight or 'compile' for any language that you give it a definition file for.
The idea is that it has already been done very well, and this would simply be
the reuse of existing packages.


Anyway, is providing a way to read the file name something that could be done
easily?  Could it cause problems from a security standpoint?  I'm sure this has
come up before, but if it is going to be considered it would seem to require
several variables (to allow the user to determine the names of scene files and
output files, which may be different).  Would it be better to consider allowing
a scene file to read what options it was called with?  This would be the options
as specified in the povray.ini, scene.ini, and command line - for instance, a
scene could know whether or not anti-aliasing was used.



-Reactor


Post a reply to this message

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