POV-Ray : Newsgroups : povray.advanced-users : Programatic Object reference Server Time
28 Dec 2024 14:21:58 EST (-0500)
  Programatic Object reference (Message 1 to 2 of 2)  
From: John D  Gwinner
Subject: Programatic Object reference
Date: 7 Apr 2004 10:06:01
Message: <40740ac9@news.povray.org>
Ack, I found out this causes an error:

//////////////////
#declare ObjectName = concat("ExportedObj_", str(frame_number,0,0));

object {
  ObjectName
}
//////////////

So, short of this:

#if (frame_number=0)
 object { ExportedObj_0 }
#end
#if (frame_number=1)
 object { ExportedObj_1 }
#end
//////////////

Is there any way to programatically refer to different objects?

(I'm dealing with a series of files that have a #declare object= block in
them, exported by a tool, that defines these objects).

        == John ==


Post a reply to this message

From: ABX
Subject: Re: Programatic Object reference
Date: 7 Apr 2004 10:07:46
Message: <3q2870l6asnusb5ld3qnmsq0a3479a8a5v@4ax.com>
On Wed, 7 Apr 2004 07:08:41 -0700, "John D. Gwinner"
<joh### [at] cornelledu> wrote:
> Is there any way to programatically refer to different objects?

Use Parse_String macro.

ABX


Post a reply to this message

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