POV-Ray : Newsgroups : povray.general : String Problem... : Re: String Problem... Server Time
7 Aug 2024 23:24:29 EDT (-0400)
  Re: String Problem...  
From: Bob H 
Date: 6 May 2001 05:40:07
Message: <3af51bf7@news.povray.org>
"Ib Rasmussen" <ib### [at] ibrasdk> wrote in message
news:3AF3C30A.34B3F657@ibras.dk...
> Eitan Tal wrote:
>
> > is there a way to add Strings?
>
> You may want to try the concat function. See the docs under string
> functions.

Such as:

#declare imgPath="C:\\images\\"
#declare cardNum=99;
#declare cardType="abc"

#declare tempStr = concat ( imgPath, str(cardNum,0,0), "_", cardType,
".gif" )

plane {z,0 pigment {image_map {gif tempStr}}}

text {ttf "times.ttf", tempStr, .1,0 pigment {rgb 1} scale .5 translate
<-2.5,-.5,-.5>}

If you're like me and don't always use this kind of thing it can be
difficult to remember the correct way to go about it.

Bob H.


Post a reply to this message

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