Hi,
I don't know if I'm overseeing something very obvious here - sorry, if that would be the case…
How can I “rasterize” a float to have only a given number of fractional digits?
What I mean is an expression like (desired result is 9.12):
xx(2, 9.123456)
Is there something already available? Or do I have to build a function myself?
Thanks,
Marc
expression q: rasterize float to n number of fract digits
4773 5 2- bollili
- Member
- 206 posts
- Joined: 12月 2009
- Offline
- hanton
- Member
- 36 posts
- Joined: 10月 2011
- Offline
- protozoan
- Member
- 1645 posts
- Joined: 3月 2009
- Online
- bollili
- Member
- 206 posts
- Joined: 12月 2009
- Offline
- animatrix_
- Member
- 4549 posts
- Joined: 2月 2012
- Offline
You can use exread to read your custom hscript expressions:
http://www.sidefx.com/docs/houdini12.5/commands/exread [sidefx.com]
http://www.sidefx.com/docs/houdini12.5/commands/exread [sidefx.com]
Senior FX TD @ Industrial Light & Magic
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com]
youtube.com/@pragmaticvfx | patreon.com/animatrix | pragmaticvfx.gumroad.com
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com]
youtube.com/@pragmaticvfx | patreon.com/animatrix | pragmaticvfx.gumroad.com
- bollili
- Member
- 206 posts
- Joined: 12月 2009
- Offline
-
- Quick Links