Echo commands(like maya script editor)

   3613   3   1
User Avatar
Member
21 posts
Joined: Jan. 2013
Offline
Hey guys, actually what I need is a something similar of Maya Script Editor output window. E.g. output values of rand() function per frame. In Maya it would be :
float $sphereTY = pSphere1.translateY = rand(3);
print $sphereTY ;
User Avatar
Member
21 posts
Joined: Jan. 2013
Offline
It is so difficult to print out randomly generated numbers?
Or maybe I should read Houdini's documentation?
User Avatar
Member
299 posts
Joined: Jan. 2010
Offline
You should read the documentation.


import random
sphereTY = random.random()
hou.node('/obj/sphere').parm('ty').set(sphereTY)
print sphereTY
Drive, monkey, drive!
User Avatar
Member
21 posts
Joined: Jan. 2013
Offline
Thanks! Python is great tool.
  • Quick Links