MAXON CINEMA 4D: Cinema 4D Forum Adobe After Effects Forum

Xpresso Question -Displaying 4 Decimal Places

COW Forums : Maxon Cinema 4D

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
Tony Barone
Xpresso Question -Displaying 4 Decimal Places
on Feb 15, 2016 at 5:38:00 pm

I’m trying to put together a setup in XPresso to create a text output with a string of numbers controlled by a float slider. Seems easy enough, except I need the numbers to extend 4 decimal places. Its for a readout display to indicate degree angle, so the display should go from 0.0000º to 360.0000º.

In the User Data, I can only set the step size to 3 decimal places and I need to go to 4.

Can anyone help me out with this?



Return to posts index


Tony Barone
Re: Xpresso Question -Displaying 4 Decimal Places
on Feb 15, 2016 at 9:43:17 pm

Found an answer to my question:


There is a System Preset node called Set Decimals, in the String session.
Just feed it with the number in the Value port and the number of decimal places in the Following port.
The result is a String with the decimal places clamped.
If you set the number of decimal places to 0, it will round to the nearest integer.



Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]