Turns out I read the documentation too fast....
enableQuery became a property but kept the same name.
I know MFnNumericAttr.setKeyable(bool) became MFnNumericAttr.keyable = bool
but since enableQuery kept the exact same name, I didn't realize. The only 
difference in the documentation is "enableQuery()" became "enableQuery" - 
with no brackets
In case that can help anyone...

cheers


Le lundi 14 octobre 2019 12:39:17 UTC-4, vince touache a écrit :
>
> hi guys, 
>
> have anyone noticed a weird behavior using the MSyntax with python api2.0 ?
> I'm trying to add a syntax.enableQuery, but that results in a "Calling 
> syntax creator function failed # ".
> I'm not super fluent with writing MPxCommands in api2.0, but I did exactly 
> what I usually do in cpp, which works just fine.
> So I'm wondering if I did something wrong or if the query feature is just 
> not implemented in maya api2.0, with a not-super-relevant error message ?
>
> Any similar experience ?
>
> cheers
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/0b9c0b03-1fe5-4147-9b1d-b1bf95c1a6b1%40googlegroups.com.

Reply via email to