I found the solution and posting here in case anyone else ever needs it. 

Just run this line before importing:
pm.other.FBXProperty('Import|AdvOptGrp|UI|ShowWarningsManager', '-v', 0) # 
disble the Warning Manager

Thanks.

On Thursday, June 3, 2021 at 8:26:00 PM UTC-7 Fred Lewis wrote:

> Is there any way to suppress Maya's Warning Manager when importing an FBX 
> file programmatically?  
>
> I have a script that imports hundreds of FBX files one at a time, using 
> pymel.core.system.importFile().  Works great but whenever Maya's Warning 
> Manager pops up, that closes my progressWindow,.  I want to completely 
> ignore warnings and errors, such as "Incomplete BindPose" for example.
>
> Thanks in advance for any suggestions!
>

-- 
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/874a6050-06f6-4371-9434-9767b1b6ab63n%40googlegroups.com.

Reply via email to