POV-Ray : Newsgroups : povray.general : How to read a pov file? : How to read a pov file? Server Time
2 Aug 2024 06:18:24 EDT (-0400)
  How to read a pov file?  
From: Alf Peake
Date: 28 Dec 2004 14:33:59
Message: <41d1b527@news.povray.org>
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

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