POV-Ray : Newsgroups : povray.advanced-users : Using a Macro to add children to a predeclared object : Using a Macro to add children to a predeclared object Server Time
29 Jul 2024 14:22:43 EDT (-0400)
  Using a Macro to add children to a predeclared object  
From: John D  Gwinner
Date: 4 Jan 2002 01:48:07
Message: <3c355027$1@news.povray.org>
Ok ... is that possible?

Specifically, I have a POV-Ray macro that can generate a series of objects.

I want to include this in a Moray scene file.

I want to have the .inc file 'add' these objects to a specific named Moray
object (a union or group).

Something like:

#AddChild( MyCSG, object { myincobject} }

(If I was just using POVRay, I'd just put the macro inside the specific
named group, obviously).

The issue is that Moray will add the include file before the rest of the
Moray file, so I can't include my object inside the Moray csg without hand
editing the Moray exported file.

I've been looking to use Moray to do some animations, but I have a bad
feeling I'll have to use Moray to model and animate the completed scene with
POVRay to do what I want; i.e. including Moray into POVRay instead of the
other way around.

The other option I guess is to build a Moray plug in ...

                  == John ==


Post a reply to this message

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