POV-Ray : Newsgroups : povray.newusers : calling macros from an include file. Server Time
5 Nov 2024 01:20:50 EST (-0500)
  calling macros from an include file. (Message 1 to 7 of 7)  
From: Dawn McKnight
Subject: calling macros from an include file.
Date: 1 Sep 2002 16:27:39
Message: <3D727839.8000400@earthlink.net>
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

From: Christoph Hormann
Subject: Re: calling macros from an include file.
Date: 1 Sep 2002 16:39:31
Message: <3D727B02.539B05AB@gmx.de>
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

From: William F  Pokorny
Subject: Re: calling macros from an include file.
Date: 1 Sep 2002 17:04:02
Message: <3D7280C2.B1940652@attglobal.net>
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

From: Dawn McKnight
Subject: Re: calling macros from an include file.
Date: 1 Sep 2002 17:24:44
Message: <3D72859B.1000009@earthlink.net>
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

From: Dawn McKnight
Subject: Re: calling macros from an include file.
Date: 1 Sep 2002 17:35:01
Message: <3D728804.7030906@earthlink.net>
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

From: William F  Pokorny
Subject: Re: calling macros from an include file.
Date: 1 Sep 2002 17:36:54
Message: <3D728877.ED609F55@attglobal.net>
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

From: Petra Müller
Subject: Re: calling macros from an include file.
Date: 2 Sep 2002 14:04:47
Message: <020902.200235.pn.2@ID-50671.user.dfncis.de>
Hello Dawn,

> Round_Box(<-17.5, 0, -64>, <17.5, 12, 10>, 1, yes),
                                    perhaps without ^

Petra


Post a reply to this message

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