|
![](/i/fill.gif) |
POV-Ray's read ignores "//" and chokes when it finds a reserved word
so how do I read a *.pov or *.inc file without errors?
#fopen Data "ANY.pov" read
#read ( Data, In )
#debug concat("\n** ", In," **\n")
#fclose Data
Parse Error: Expected 'float, vector, or string literal', camera found
instead.
Enclosing the whole file in quotes gets you a "String too long"
message.
So I've got this large POV file of 7K+ balls, outputed by another
application of the form object{ sphere,0 1 scale 1of2 texture{ 1of5 }
translate There }. I thought it would be easy to use POV-Ray to read,
scan and re-write to a 2nd file using 5 simple unions. I'm sure I've
done it with my own INCs a couple of years or so ago but don't
remember how :(
Alf
Post a reply to this message
|
![](/i/fill.gif) |