Hi all
Sorry for digging this out, but we switched do maya2017 and this problem 
persists.
Perhaps someone has solved this?
I know calling python from c++ deformer looks fishy, but...


On Tuesday, March 10, 2015 at 12:29:01 AM UTC+1, Michał Frątczak wrote:
>
> Hi
> I have a c++ deformer node that calls a python function using:
>
> 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 ...
> Any ideas ?
>

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to python_inside_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/2f4eb1f0-5b7f-41e7-80f1-060aa2cf2b4d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to