POV-Ray : Newsgroups : povray.newusers : PovRay Buffer : Re: PovRay Buffer <offtopic> Server Time
29 Jul 2024 10:30:55 EDT (-0400)
  Re: PovRay Buffer <offtopic>  
From: Chris B
Date: 22 Feb 2006 07:35:19
Message: <43fc5a87@news.povray.org>
"Verm" <pov### [at] thirteeendynucom> wrote in message 
news:43fc419b$1@news.povray.org...
> delly wrote:
>  ... snip ...
>
> <offtopic aside>
> OK, as often as not this is an include file so it doesn't render (and may 
> even cause pov to quit*), ... snip ...
></offtopic aside>

Hi Verm,

I have a tendency to fall foul of the same operator error on a fairly 
regular basis.
If I'm working a lot in an include file I use a variable declared in the pov 
file I want to run to intercept the mistake and include a pov scene file 
(instead of parsing the content of the include file). I usually assign a 
camera variable at the top of my pov scene file, so I add the following 
lines as a wrapper around the contents of my include file. This way, POV-Ray 
for windows is also kind enough to return to the include file when it 
finishes the render, thus saving me two clicks and an error message. Clearly 
the pov scene file then needs to set the tested  variable before it includes 
the file you're working on.

#ifndef(ppCamera)
  #include "pp00animationexample04.pov"
#else

... Include file contents ...

#end

Regards,
Chris B.


Post a reply to this message

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