Initially I had defined my selection_case to be False instead of None as I 
am not so sure which of the two I should put.
There has been a function before this test() code I wrote that checks for 
selection. If there are no selections, it will return None. If there are 
selections, it will then check if the selections fulfills the nodetype 
criteria as defined in wihin sel_custom and sel_orig.

Hence my usage of:
    if selection_case:
        ...
    else:
        ...

In cases like this, should I just put it as selection_case = False instead?

By the way, when I tried using
    if selection_case is None:
        ...

It is not working as I expected it would output the same as in the code I 
have written

-- 
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/54b3089d-5e19-43d4-b520-fb7595632142%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to