$currentPanel = `getPanel -withFocus`; string $panelType = `getPanel -to $currentPanel`; if ($panelType == "modelPanel") { modelEditor -e -strokes ( !`modelEditor -q -strokes $currentPanel` ) $currentPanel; modelEditor -e -textures ( !`modelEditor -q -textures $currentPanel` ) $currentPanel; modelEditor -e -handles ( !`modelEditor -q -handles $currentPanel` ) $currentPanel; modelEditor -e -pivots ( !`modelEditor -q -pivots $currentPanel` ) $currentPanel; modelEditor -e -dimensions ( !`modelEditor -q -dimensions $currentPanel` ) $currentPanel; modelEditor -e -dynamicConstraints ( !`modelEditor -q -dynamicConstraints $currentPanel` ) $currentPanel; modelEditor -e -nRigids ( !`modelEditor -q -nRigids $currentPanel` ) $currentPanel; modelEditor -e -nCloths ( !`modelEditor -q -nCloths $currentPanel` ) $currentPanel; modelEditor -e -follicles ( !`modelEditor -q -follicles $currentPanel` ) $currentPanel; modelEditor -e -hairSystems ( !`modelEditor -q -hairSystems $currentPanel` ) $currentPanel; modelEditor -e -fluids ( !`modelEditor -q -fluids $currentPanel` ) $currentPanel; modelEditor -e -ikHandles ( !`modelEditor -q -ikHandles $currentPanel` ) $currentPanel; modelEditor -e -dynamics ( !`modelEditor -q -dynamics $currentPanel` ) $currentPanel; modelEditor -e -deformers ( !`modelEditor -q -deformers $currentPanel` ) $currentPanel; modelEditor -e -lights ( !`modelEditor -q -lights $currentPanel` ) $currentPanel; modelEditor -e -planes ( !`modelEditor -q -planes $currentPanel` ) $currentPanel; modelEditor -e -hud ( !`modelEditor -q -hud $currentPanel` ) $currentPanel; modelEditor -e -joints ( !`modelEditor -q -joints $currentPanel` ) $currentPanel; modelEditor -e -locators ( !`modelEditor -q -locators $currentPanel` ) $currentPanel; };