Echo commands(like maya script editor)
4091
3
1
Cyberika
Member
21 posts
Joined: 1月 2013
Offline
2013年6月28日 6:57
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 ;
Cyberika
Member
21 posts
Joined: 1月 2013
Offline
2013年6月28日 14:06
It is so difficult to print out randomly generated numbers?
Or maybe I should read Houdini's documentation?
Erik_JE
Member
299 posts
Joined: 1月 2010
Offline
2013年6月28日 16:44
You should read the documentation. import random sphereTY = random.random() hou.node('/obj/sphere').parm('ty').set(sphereTY) print sphereTY
Drive, monkey, drive!
Cyberika
Member
21 posts
Joined: 1月 2013
Offline
2013年6月29日 4:49
Thanks! Python is great tool.