POV-Ray : Newsgroups : povray.advanced-users : Programatic Object reference : Programatic Object reference Server Time
28 Jul 2024 20:33:53 EDT (-0400)
  Programatic Object reference  
From: John D  Gwinner
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

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