Re: [Maya-Python] Re: mel global vars

2015-10-21 Thread Todd Widup
cool, thanks Robert.

I was using the whole pm.eval trick for it and thought there has to be a
smoother way


On Wed, Oct 21, 2015 at 11:05 AM, Robert White 
wrote:

> Should be the melGlobals object.
> It works like a dict
>
> So this should work
>
> import pymel.core as pm
> pm.melGlobals['$gShelfTopLevel']
> # Result: 'MayaWindow|toolBar2|MainShelfLayout|formLayout14|ShelfLayout' #
>
>
>
>
> On Wednesday, October 21, 2015 at 12:51:33 PM UTC-5, todd@gmail.com
> wrote:
>>
>> does pyMel store/add the maya global vars anyplace?
>> globals like $gShelfForm or $gShelfTopLevel, etc
>>
>> --
>> Todd Widup
>> Creature TD / Technical Artist
>> to...@toddwidup.com
>> todd@gmail.com
>> www.toddwidup.com
>>
> --
> 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 python_inside_maya+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/b7d728a6-24d2-409f-8042-98f53a1ce442%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Todd Widup
Creature TD / Technical Artist
t...@toddwidup.com
todd.wi...@gmail.com
www.toddwidup.com

-- 
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 python_inside_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CABBPk34J2kceteOA-6xxaEg8a_GM9g42Cryc6Y20L%3DX6wM%2BwTw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[Maya-Python] Re: mel global vars

2015-10-21 Thread Robert White
Should be the melGlobals object.
It works like a dict

So this should work

import pymel.core as pm
pm.melGlobals['$gShelfTopLevel']
# Result: 'MayaWindow|toolBar2|MainShelfLayout|formLayout14|ShelfLayout' # 




On Wednesday, October 21, 2015 at 12:51:33 PM UTC-5, todd@gmail.com 
wrote:
>
> does pyMel store/add the maya global vars anyplace?  
> globals like $gShelfForm or $gShelfTopLevel, etc
>
> -- 
> Todd Widup
> Creature TD / Technical Artist
> to...@toddwidup.com 
> todd@gmail.com 
> www.toddwidup.com
>

-- 
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 python_inside_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/b7d728a6-24d2-409f-8042-98f53a1ce442%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.