PDA

View Full Version : xpresso and decimal places (unwanted rounding)


Greasemonkey
02-22-2013, 03:19 PM
Hi there,
I'm wanting to create a long, changing string of numbers to feed into a motext object.
Currently I'm trying to generate an irrational number in xpresso, but the formula node always seems to round to 3 decimal places.
Any thoughts?

littledevil
02-22-2013, 04:07 PM
i haven't tested it specifically for your case, but the rounding should be only a visual
help. internally the the values are being stored as without being rounded, so you can
still read them.

douwe
02-22-2013, 04:50 PM
Pass the number as a String into your MoText Object.

http://www.mediafire.com/conv/bfc7abc9d4e41251a55e4e3d0ed469ff4227a841419008a6875b23f3dc2eb64a6g.jpg

Greasemonkey
02-22-2013, 04:53 PM
I'm sure internally it's calculating further than that, but I can't find a way to access that.
There's no options that I can find to define the number of decimal places output by the formula node - by default it seems to be only to three places .

Greasemonkey
02-22-2013, 04:55 PM
Thanks Douwe, I think I can read the small python print in your example :)

douwe
02-22-2013, 10:16 PM
Thanks Douwe, I think I can read the small python print in your example :)

Ye. The Imagehost did some shrinking to that screenshot. Here's the original (http://www.mediafire.com/?2w8aibsc48561qi).

But you get the idea.
There's multiple ways to get a String into the MoText.
You can also work Strings with a Math Node.

Greasemonkey
02-23-2013, 01:16 PM
Excellent, thanks again!

CGTalk Moderation
02-23-2013, 01:16 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.