Try mel.evalDeferred and see if that helps
On Friday, September 30, 2016, I73 <[email protected]> wrote:
> I am trying to call:
> mel.eval('loadNewShelf "myPathToShelf.mel"')
>
>
> But it's not loading the shelf, when I call the function after Maya has
> loaded in the script editor it loads the shelf fine. Where can I put my
> userSetup.py to allow me to load this? I know it has something to do with
> modules not being imported before the calls.
>
> Thanks!
>
> --
> 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]
> <javascript:_e(%7B%7D,'cvml','python_inside_maya%[email protected]');>
> .
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/python_inside_maya/e2e221ce-fb50-451c-ab9e-
> f8ac22018294%40googlegroups.com
> <https://groups.google.com/d/msgid/python_inside_maya/e2e221ce-fb50-451c-ab9e-f8ac22018294%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
--
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/CAM9RXoJ69M02VFdttbAdEp%3D2mMPfLpidcLOOm-rA-Jg1pUGerg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.