Ilya Razmanov <ily### [at] gmailcom> wrote:
Found it.
https://news.povray.org/povray.general/message/%3CXnsAC0E5196CA622seed7%40news.povray.org%3E/#%3CXnsAC0E5196CA622seed7%
40news.povray.org%3E
So what you do is this:
#if (input_file_name = "MySceneFile.inc")
Camera
Lights
whatever else
#end
Then rest of your scene is _just_ the include file.
That way, if you're including your file in another file, it doesn't run the
extra scene setup code.
But if you're running it as a standalone file, you obviously need the scene
setup stuff to render anything - and so it's all right there.
- BW
Post a reply to this message
|