hou.Parm.menuItems() question

   3430   3   2
User Avatar
Member
1799 posts
Joined: Oct. 2010
Offline
Hi I am trying to return all of the options in a drop down menu using the hou.Parm.menuItems() method. However, I get an error saying that my parameter is not a menu parameter

Currently the parameter I am trying to parse is, in fact, a string; however, it uses a drop down menu to get the actual string value. Is there a way to return the menu items if the parameter is using a menu but is a string?

Thanks!
-G
User Avatar
Member
345 posts
Joined:
Offline
Unfortunately menuItems() doesn't like strings at the moment . Use hscript function instead (if I remember right it was opmenu)
User Avatar
Member
1799 posts
Joined: Oct. 2010
Offline
Thank you! I will give that a shot. Just out of curiosity, is there a python command to run and get the return value of an hscript command?
-G
User Avatar
Member
345 posts
Joined:
Offline
www.sidefx.com/docs/houdini11.1/hom/hou/hscriptExpression
  • Quick Links