jaydru
01-05-2008, 03:53 PM
the removal of the compass in maya 2008 has realy messed up my work flow but i got this script to toggel the cam in to orthagraphic mode, only problem is when i execute the comand it becomes one of my undo's, does anyone know how to make this script non-undoable,
{
//this gets the current viewport
string $currentPanel = `getPanel -withFocus`;
//this gets the camera associated with the panel
string $currentCam = `modelPanel -query -cam $currentPanel`;
//this sets the value to be the opposite of whatever it is currently (that's what the '!' is for
setAttr ($currentCam+".orthographic") (!`getAttr ($currentCam+".orthographic")`);
}
thanks for your help
{
//this gets the current viewport
string $currentPanel = `getPanel -withFocus`;
//this gets the camera associated with the panel
string $currentCam = `modelPanel -query -cam $currentPanel`;
//this sets the value to be the opposite of whatever it is currently (that's what the '!' is for
setAttr ($currentCam+".orthographic") (!`getAttr ($currentCam+".orthographic")`);
}
thanks for your help
