POV-Ray : Newsgroups : povray.general : Creating a text object from a variable... : Re: Creating a text object from a variable... Server Time
4 Nov 2024 23:15:54 EST (-0500)
  Re: Creating a text object from a variable...  
From: Hughes, B 
Date: 21 Aug 2003 02:36:24
Message: <3f446868@news.povray.org>
"dwmitch" <nomail@nomail> wrote in message
news:web.3f4445ee3750c9862db2e4420@news.povray.org...
> I've tried that, but I keep getting an error message. I don't have easy
> access to the program now, but something to do with numbers expected or
> something like that.
>
> Kaveh wrote:
> >
> >Str() should do it. See documentation, 6.1.7.1.

Try something like:

#local IterateX=4/3; // 1.333333

text {
 ttf "arial.ttf"

// variable identifier, minimum length, decimal places
 str(IterateX,0,0),
 0,0 // depth, offset

 pigment {rgb 1}
}


Post a reply to this message

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