I don't understand properly.
Are you saying that the code in your second post works correctly? The big 
difference between that and your first post is what Justin said - in your 
second post you set status.
status =syntax.addFlag(...
compared with the first post
syntax.addFlag(...
So in your first post, status is never set, and you are checking an 
ininitialized variable.



On Thursday, 26 October 2017 18:34:00 UTC+11, Rémi Deletrain wrote:
>
> This code it's a copy/past of maya exemple. It's the last test I do but 
> doesn't work too.
>
> I break on my code with this test:
> status = syntax.addFlag(kShortShapeName, kLongShapeName, MSyntax::kString
> );
> if (status != MStatus::kSucces){
>     MGlobal::displayError("ERROR: ...");
> }
>
> With this test I pass on the condition...
>
> I try to make other plugin with the same code, just for have argument and 
> that works... I don't understand...
> I think make a copy/past of the test plugin on my plugin but I want to 
> understand my problem..
>

-- 
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/c7172a68-a3ae-4be4-9ccb-5e0a222b96b7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to