hou.expandString function

Evaluates the given string expression and returns the result.

Usage

expandString(str) -> string

Global variables found in the expression are expanded, as well as any channel references. For example, hou.expandString('$F') returns the current frame number while hou.expandString('ch("/obj/geo1/tx")') returns the value of the translate X parameter for geo1 at the current time.

This function throws a hou.OperationFailed exception if the string that is passed in is None.