POV-Ray : Newsgroups : povray.advanced-users : Programatic Object reference Server Time
28 Jul 2024 18:15:10 EDT (-0400)
  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.