no good way but here is a really hackish way. edit: will have to post later for you appeenty my phone can't copy and paste python and have it formatted correctly. it is still a big hack job to do since you are actually quwrory the viewport ui element.
ya think i will stick to my method when i know the user will have the viewport as the active pane. since to accomplish that via python mel.eval() needs to be used to get the global variable that is needed. my script that im using this with is a zbrush style viewport snap, so it actually is a safe assumption that it is…
global proc string findNewCurrentModelView() { global string $gMainPane; string $mainPaneCtls[]; string $visPanels[]; string $panelName; string $panelCtl, $edCtl; string $modelEd; int $nArr; int $i; string $newViewFound; string $newView; // // First try to find something in the main pane. // if ($gMainPane != "") {…