What is the expression for random positon?

   2062   5   0
User Avatar
Member
23 posts
Joined: March 2017
Offline
Hello

Can somebody tell me what is the expression for a random x position between 5 and -5 from frame to frame?

Thank you
User Avatar
Member
555 posts
Joined: Feb. 2017
Offline
would this do?

Attachments:
randx.hipnc (51.8 KB)

User Avatar
Member
23 posts
Joined: March 2017
Offline
Yes, this is exactly what I looking for. Thank you very much. Is there any expression dictionary or something where I can learn the expressions from?
User Avatar
Member
555 posts
Joined: Feb. 2017
Offline
probably not dictionary, but if you bring up help (F1) then search for VEX, go to ‘using VEX expressions’…it's pretty good
User Avatar
Member
23 posts
Joined: March 2017
Offline
Thank you again.
User Avatar
Member
11 posts
Joined: July 2012
Offline
There is an expression cookbook in the Houdini documents that contains some tips and tricks for writing expressions: http://www.sidefx.com/docs/houdini/ref/expression_cookbook.html [www.sidefx.com] You can also use help (F1) and search for ‘expression cookbook’
  • Quick Links