> > #Get the current panel. > myPanel = pm.getPanel(withFocus=True) > > > #Get active panel type of. > myPanelType = pm.getPanel(type='myPanel')
this does not query the type of the panel, it lists the panels of the given type. also, i think your intention was to pass the value of the variable myPanel from the previous query, but instead you passed the string 'myPanel' -- http://groups.google.com/group/python_inside_maya