No changing when using Python control the input of switch

   3128   2   0
User Avatar
Member
27 posts
Joined: Nov. 2009
Offline
hi,

there is no change when I use Python to control the input of switch.
for example,I have written a code in the input parameter of switch1:
if hou.hscriptExpression(“$F”) > 20:
return 1
else:
return 0
firstly I connect a sphere to the switch1, then a box.
although the input parameter of switch1 is changed from 0 to 1, there is no change in the scene view.

thanks

Attachments:
noChanging.hip (38.8 KB)

Houdini is a big thing!
User Avatar
Member
678 posts
Joined: July 2005
Offline
This should help

http://www.sidefx.com/index.php?option=com_forum&Itemid=172&page=viewtopic&t=18039&highlight=python [sidefx.com]

Cheers
User Avatar
Member
27 posts
Joined: Nov. 2009
Offline
thanks,Swann.
it works
Houdini is a big thing!
  • Quick Links