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 <[email protected]> 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, [email protected] > wrote: >> >> does pyMel store/add the maya global vars anyplace? >> globals like $gShelfForm or $gShelfTopLevel, etc >> >> -- >> Todd Widup >> Creature TD / Technical Artist >> [email protected] >> [email protected] >> 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/python_inside_maya/b7d728a6-24d2-409f-8042-98f53a1ce442%40googlegroups.com > <https://groups.google.com/d/msgid/python_inside_maya/b7d728a6-24d2-409f-8042-98f53a1ce442%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Todd Widup Creature TD / Technical Artist [email protected] [email protected] 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 [email protected]. 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.
