POV-Ray : Newsgroups : povray.general : concat for variable identifier? : Re: concat for variable identifier? Server Time
6 Aug 2024 14:25:03 EDT (-0400)
  Re: concat for variable identifier?  
From: Christoph Hormann
Date: 3 Mar 2002 11:43:49
Message: <3C8252C0.A15339EA@gmx.de>
"Sebastian H." wrote:
> 
> [...]
> 
> Inside the macro should have access to OBJ_axis or OBJ_angle so I need a
>   function like *concat (OBJ, "_axis")* that does not return a string
> but the variable identifier.
> 
> Is this anyhow possible in POV?
> 

Two possibilities:

- use arrays for your data instead of single variables
- use the Parse_String() macro (Povray 3.5, strings.inc)

Christoph

-- 
POV-Ray tutorials, IsoWood include,                 
TransSkin and more: http://www.tu-bs.de/~y0013390/  
Last updated 21 Feb. 2002 _____./\/^>_*_<^\/\.______


Post a reply to this message

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