POV-Ray : Newsgroups : povray.general : Convert string identifier to object name : Re: Convert string identifier to object name Server Time
30 Jul 2024 04:19:02 EDT (-0400)
  Re: Convert string identifier to object name  
From: Stephen
Date: 2 Nov 2009 05:25:38
Message: <4aeeb3a2$1@news.povray.org>
Thomas de Groot wrote:
> This is a bit similar to SharkD's question above, but I wonder if it is 
> possible.
> 
> What I want to do is the following:
> 
> #local PoserName = "Beggar_";
> #include concat(PoserName, "POV_geom.inc")
> #local ObjName = object {PoserName}
> 
> The first two line of code work correctly, but the third one generates a 
> parse error of course, as a string identifier instead of an object is found. 
> How can I make this work?
> 

similar problem with wanting to include a frame number in the name of 
the object (in PovRay) until I saw that you can define in PoseRay what 
you want to name the object.

-- 

Best Regards,
	Stephen


Post a reply to this message

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