lowkey
10-27-2002, 02:50 PM
hi all,
i'm customizing my marking menus to contain more views, but the problem i'm facing is that each command i'd like to execute is always related to a specific viewport-panel :
for example :
viewSet -rs `modelEditor -q -camera modelPanel1`;
editMenuUpdate MayaWindow|mainEditMenu;
switches viewport 1 into right view !
what i'd like to have is executing the command for the active viewport only, something like :
viewSet -rs `modelEditor -q -camera modelPanel*`;
editMenuUpdate MayaWindow|mainEditMenu;
which give me a syntax error ! :eek:
so, does anyone know how to adress the active viewport in mel ?!
thanks
i'm customizing my marking menus to contain more views, but the problem i'm facing is that each command i'd like to execute is always related to a specific viewport-panel :
for example :
viewSet -rs `modelEditor -q -camera modelPanel1`;
editMenuUpdate MayaWindow|mainEditMenu;
switches viewport 1 into right view !
what i'd like to have is executing the command for the active viewport only, something like :
viewSet -rs `modelEditor -q -camera modelPanel*`;
editMenuUpdate MayaWindow|mainEditMenu;
which give me a syntax error ! :eek:
so, does anyone know how to adress the active viewport in mel ?!
thanks
