POV-Ray : Newsgroups : povray.general : Convert string identifier to object name : Convert string identifier to object name Server Time
30 Jul 2024 04:15:47 EDT (-0400)
  Convert string identifier to object name  
From: Thomas de Groot
Date: 2 Nov 2009 04:38:52
Message: <4aeea8ac$1@news.povray.org>
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?

-- 
All the best,

Thomas


Post a reply to this message

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