Random function Syntax

   3527   2   0
User Avatar
Member
436 posts
Joined: July 2005
Offline
In V8b, what happened to the random function. It does not appear under Help in Texport, and if I put $RND in a field, it errors out.

I tried $RND, $RAND, $RANDOM, and few other variations, but it errors out. What is the correct syntax. In general where can I find a good expression syntax reference for V8. I can't use Houdini Help becouse Houdini Browser crashes when I pull up Help or press ‘?’ icon in Parameter window.

Damn it, I've been swimming in Maya pool far too long since my stint at Domain!
User Avatar
Member
4262 posts
Joined: July 2005
Offline
Try the rand() function.

exhelp rand
if(coffees<2,round(float),float)
User Avatar
Member
12499 posts
Joined: July 2005
Offline
Yeah, you should use the -k option to search by keyword too:

ie.:

Search commands: help -k mykeyword
Search expressions: exhelp -k mykeyword

Eg.
exhelp -k random
Jason Iversen, Technology Supervisor & FX Pipeline/R+D Lead @ Weta FX
also, http://www.odforce.net [www.odforce.net]
  • Quick Links