I have a python function hipver() defined in my pythonrc. It returns the version part of the current hip file as a string. I'm trying to use this as part of a string parameter (Output picture parm on the Mantra ROP - I miss my pipeline from work ). It evaluates correctly in the houdini python shell but doesn't work in a string param on a node. While Googling around I found out about needing to key the string param, that I can't use backticks to evaluate a python function, etc.
I want it to be scene independent and I don't want to have to set the node to use Python Expressions, so I think the best way would be for an HScript global variable (e.g. $HIPVER) to contain the output of the python function. Is this possible and can someone help me set that up or point me in the right direction?