[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: > > do

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['$gShel