POV-Ray : Newsgroups : povray.newusers : Syntax Help : Syntax Help Server Time
29 Jul 2024 08:13:31 EDT (-0400)
  Syntax Help  
From: Woody
Date: 27 Mar 2006 21:50:00
Message: <web.4428a36abebcaab06860048b0@news.povray.org>
I need help with an include file I'm writing. I'm getting an error depending
on where I place an object statement in the include file.

The file rubik.pov reads

#include "colors.inc"
#include "rubik.inc"

camera {
   location <-2, 4, -3>
   look_at <1.5,1.5,1.5>
}

light_source {
 <-2,4,-3>
 color White
 adaptive 1
 jitter
 spotlight
 radius 10
 falloff 20
 tightness 20
 point_at <0,0,0>
 shadowless
}
//  */

object{ cube_init() }



the rubik.inc reads

#macro cube_init ()

#declare Front =
box{
        <0,0,0>,
        <1,1,.000001>

        texture {pigment{image_map{"Front.bmp" map_type 0}} scale 1}
        scale 3
}


#declare Count=1;
#while (Count <= 5)

        //object{ Front }



        #declare Count=Count+1;
#end
//object{ Front }

#end

When the object{ Front } is placed outside the while loop everything works
fine. When it is placed inside the loop, I get the following error.

"Parse Error: No matching } in 'object', object found instead"


-Jeff


Post a reply to this message

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