>
>
>> 2. Is there any chance that I will need to add in an `else` statement 
>> should the self.state not conform to either `self.STATE_ROOT_SELS` or 
>> `self.STATE_USER_SELS`? Otherwise, I suppose I can stopped such from 
>> happening in the run_dialog function, right? 
>
>
Can you raise a ValueError if they don't pass a valid constant?  

 
Hey Justin, was wondering if you could give me an example scenario as to 
when this will occurs?
I asked because I tried selecting objects of other node types etc, I am 
getting errors (need to rewrite my logic here) but only within the 
`run_dialog` and it does not seems to pass in this `else` statement..

-- 
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/2cd81c76-93f9-4837-81b8-be04c5d90bb4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to