Hi, I have a repetitive, randomly occurring issue with specific functions defined in python processors/scripts.
For making the code more clean and readable, I define functions for getting parm values, like these:
def parm(parm_name):
return hou.pwd().parm(parm_name).eval()
When I call such a function to get parms from multiparm block,
for i in range(num_parms):
some_parm = parm("some_name" + str(i))
everything first works fine (and in the majority of cases still work fine) but in some cases at some point (after many successful runs) python suddenly gives me and error “str is not callable”, but when I replace this function call with full not-encapsulated code
some_parm = hou.pwd().parm("some_name" + str(i)).eval()
everything works fine again.
Since its random occurrence, I don't know if it is possible to reproduce this issue, so not sure how to post it as a bug.