It actually works using a Cancel Button and close_choice=1
result,comment = hou.ui.readInput("Add your entry:", title="String input", initial_contents="", buttons=("OK", "Cancel"),close_choice=1)
if result == 1 : return
else : return comment
result,comment = hou.ui.readInput("Add your entry:", title="String input", initial_contents="", buttons=("OK", "Cancel"),close_choice=1)
if result == 1 : return
else : return comment
viklcthank you but i meant being outside Houdini context,
Hi, you can use the hip file module there is a load function.
>>> path = "C:/Users/*username/Desktop/xxx.hiplc"
>>> hou.hipFile.load(path)
thorna100
Hi,
I was wondeirng if it might be possible to go into more detail on how to do this and once the menu is created how to add new options to it?
Thanks,
Alex