global proc int getFG_orWhatever(){ int $state = `getAttr "miDefaultOptions.finalGather"`; return $state; }
condition -i -st getFG_orWhatever isFG_enabled;
// Create a new condition, called "UndoNorRedo", which is true if // and only if undo is not available and redo is not available: global proc int isUndoNorRedo() { return (!`isTrue UndoAvailable` && !`isTrue RedoAvailable`); } condition -initialize -d UndoAvailable -d RedoAvailable -s "isUndoNorRedo" UndoNorRedo;
whatIs UndoAvailable;