![](/i/fill.gif) |
![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
I'm trying to use the round box macros from shapes.inc. In my code,
I've got:
#include "shapes.inc"
Round_Box(<-17.5, 0, -64>, <17.5, 12, 10>, 1, yes),
But when I go to render, I get:
Expected 'object or directive', undeclared identifier 'Round_Box' found
instead
File shtest.pov line 29
This is driving me bats! I'm using 3.5 for Mac, under OS X, 10.1.
Am I doing the include wrong? Calling the macro improperly? I looked
in the documentation, but it seems to say you can call a macro just by
invoking the name.
Today's 'help an idiot' day! Aren't you glad I've given you this chance
to celebrate it?
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
From: Christoph Hormann
Subject: Re: calling macros from an include file.
Date: 1 Sep 2002 16:39:31
Message: <3D727B02.539B05AB@gmx.de>
|
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Dawn McKnight wrote:
>
> I'm trying to use the round box macros from shapes.inc. In my code,
> I've got:
>
> [...]
>
> Am I doing the include wrong? Calling the macro improperly? I looked
> in the documentation, but it seems to say you can call a macro just by
> invoking the name.
Make sure you have the POV-Ray include file path in your Library_Path and
you don't have a different file named 'shapes.inc' included instead.
Christoph
--
POV-Ray tutorials, IsoWood include,
TransSkin and more: http://www.tu-bs.de/~y0013390/
Last updated 13 Aug. 2002 _____./\/^>_*_<^\/\.______
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Dawn,
Have you wrapped the call to this macro in an object statement?
object { Round_Box.....
}
Bill P.
> I'm trying to use the round box macros from shapes.inc. In my code,
> I've got:
>
> #include "shapes.inc"
>
> Round_Box(<-17.5, 0, -64>, <17.5, 12, 10>, 1, yes),
>
> But when I go to render, I get:
>
> Expected 'object or directive', undeclared identifier 'Round_Box' found
> instead
>
> File shtest.pov line 29
>
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
William F. Pokorny wrote:
> Dawn,
> Have you wrapped the call to this macro in an object statement?
>
> object { Round_Box.....
> }
I've tried it both ways. In each instance, it behaves roughly the same way.
My reading of the documentation indicates that the object statement
shouldn't be needed....
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Christoph Hormann wrote:
>
> Make sure you have the POV-Ray include file path in your Library_Path and
> you don't have a different file named 'shapes.inc' included instead.
Thanks, Christoph... after tripple-checking and then, just to be extra
sure, running a search on my hard drive for shapes.inc, I realized that
I was, in fact pointing at the 3.1 version of shapes.inc!
I told you this was 'help an idiot' day!
Thanks again!
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Dawn,
OK. You could comment out the include for shapes.inc and then copy the
shapes.inc file into your working file ahead of the Round_Box call. Ugly, but
that would tell you if it is a problem with how your libraries are set up - as
Christoph suggested might be the case.
If you have not already done it, you might try to put something besides the
Round_Box where the Round_Box is in your code today and see what happens.
Bill P.
> William F. Pokorny wrote:
> > Dawn,
> > Have you wrapped the call to this macro in an object statement?
> >
> > object { Round_Box.....
> > }
>
> I've tried it both ways. In each instance, it behaves roughly the same way.
>
> My reading of the documentation indicates that the object statement
> shouldn't be needed....
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Hello Dawn,
> Round_Box(<-17.5, 0, -64>, <17.5, 12, 10>, 1, yes),
perhaps without ^
Petra
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |