POV-Ray : Newsgroups : povray.binaries.images : Strange behaviour of #fopen : Re: Strange behaviour of #fopen Server Time
29 Jul 2024 18:29:49 EDT (-0400)
  Re: Strange behaviour of #fopen  
From: Christian Froeschlin
Date: 5 Feb 2014 18:44:25
Message: <52f2ccd9@news.povray.org>
> I want to read in a POV-Ray script from an external file to create a
> text object out of it - but whenever I try to start the main script, I
> get the error message related to the script to be read in:
>
> "Parse Error: Expected 'float, vector, or string literal' light_source
> found instead"
>
> Why that?

 From the documentation of "#read":

"
The format of the data to be read must be a series of valid string 
literals, float literals, or vector literals separated by commas.
"

Basically this means you cannot read arbitrary text files,
only "csv-like" data files. Also, AFAIK, the implementation of
#read to some extent reuses the POV-Ray expression parser, so
you might get strange messages reading source files.


Post a reply to this message

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