POV-Ray : Newsgroups : povray.general : Creating a text object from a variable... Server Time
5 Nov 2024 01:24:11 EST (-0500)
  Creating a text object from a variable... (Message 1 to 5 of 5)  
From: dwmitch
Subject: Creating a text object from a variable...
Date: 20 Aug 2003 01:00:01
Message: <web.3f42fe6a489b556e39b4d5c90@news.povray.org>
I'm trying to make a grid system to help with placement (which will be
commented out for the final renderings, of course) but I have no idea how
to do the numbers without having to do them all by hand.

I thought there would be a way to get it to print out the value of the Count
variable, but that's not turning out too well.


Post a reply to this message

From: Kaveh
Subject: Re: Creating a text object from a variable...
Date: 20 Aug 2003 03:10:44
Message: <1fzzdc8.c9ovi61xl16bcN%kaveh@delete_this.focalimage.com>
"dwmitch" <nomail@nomail> wrote:

> I'm trying to make a grid system to help with placement (which will be
> commented out for the final renderings, of course) but I have no idea how
> to do the numbers without having to do them all by hand.
> 
> I thought there would be a way to get it to print out the value of the Count
> variable, but that's not turning out too well.

Str() should do it. See documentation, 6.1.7.1.

-- 
Kaveh


Post a reply to this message

From: dwmitch
Subject: Re: Creating a text object from a variable...
Date: 21 Aug 2003 00:20:01
Message: <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:
>"dwmitch" <nomail[at]nomail> wrote:
>
>> I'm trying to make a grid system to help with placement (which will be
>> commented out for the final renderings, of course) but I have no idea how
>> to do the numbers without having to do them all by hand.
>>
>> I thought there would be a way to get it to print out the value of the Count
>> variable, but that's not turning out too well.
>
>Str() should do it. See documentation, 6.1.7.1.
>
>Kaveh
>


Post a reply to this message

From: Hughes, B 
Subject: Re: Creating a text object from a variable...
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

From: Warp
Subject: Re: Creating a text object from a variable...
Date: 21 Aug 2003 04:48:50
Message: <3f448772@news.povray.org>
dwmitch <nomail@nomail> wrote:
> 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.

  A short code demonstrating the error you are getting would be very
helpful.

-- 
#macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb x]
[1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
-1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// - Warp -


Post a reply to this message

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