MString res = MGlobal::executePythonCommandStringResult(cmd);
This has always been working fine with legacy viewport, but with VP2.0 it fails most of the time (not always) with the following error:
# Traceback (most recent call last):
# File "<maya console>", line 1, in <module>
# File "mfCacheDeformExpandString.py", line 23, in mfCacheDeformExpandString
# sceneName = mc.file(q=True, sn=True)
# TypeError: Argument to query flag must be a boolean //
I have other nodes that use similar code (to expand a templated path with user defined python function) and I'd like them to work reliably with VP 2.0 ...