sorry, by shown dialog, do you mean to say the exportWin?

On Friday, October 17, 2014 6:26:21 PM UTC+8, Justin Israel wrote:
>
> I'm pretty sure it is because you are calling showWindow() in your 
> exportWin, which shows the dialog but does not block. So the rest of your 
> export happens right away. 
> What you probably want to do is one of two options:
>
> Either have exportWin be the last line of your writer method, and allow it 
> to actually trigger the export command when the user accepts the dialog 
>
> Or use a layoutDialog to launch your UI so that it actually blocks. Then 
> it can collect your options, and continue in the writer method with your 
> parameters. 
>
> In both of these cases, the fact that you are doing all of your work 
> within the constructor of your fileExport class isn't really related. The 
> problem at this stage is that you are immediately jumping past your shown 
> dialog. 
>

-- 
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/61b71a2b-463e-4b33-86af-b18db58c7402%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to