Hey, thanks so much for the response. But trying this out I was unable to
call it, I had to add a little bit to make it work:
cmds.evalDeferred("mel.eval('loadNewShelf \"" + shelfPath.replace('\\', '/')
+ "\"');")
Thanks!
On Friday, September 30, 2016 at 6:21:33 PM UTC-7, damonshelton wrote:
>
> Try mel.evalDeferred and see if that helps
>
> On Friday, September 30, 2016, I73 <[email protected] <javascript:>>
> 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].
>> 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/b05541a5-f585-4ad9-8dad-87ee543f28d6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.