anyone know how to write a mel script in maya to create a window that allows me to quick change the currentUnit settings?
so far im stuck here :
string $window = `window`;
columnLayout;
string $node = `currentUnit`;
attrEnumOptionMenu -label "Unit" -attribute ($node + " -linear");
showWindow $window;
which is obviously wrong. I can't figure out what's the name of currentUnit's attributes. can't seem to figure it out. it would be a big help if anyone knows how.