So I am attempting to set the linear, angle, min and max time, and time (FPS) at startup.
What I have is this:
in my userSetup.mel, I source a file called sceneSetup located in some distant folder.
in that folder I set grid display options, clip planes, channel box precision; and I ATTEMPT to set current linear, angle, time, and min / max frame
Precision gets set, clipping gets set, im sure the grid gets set, but because it's based off the current linear units.. it keeps looking tiny.. but my min/max frame, time , linear unit, and angle do not get set. I get no errors; nothing simply happens
this is my sceneSetup file code:
CODE
print "Doing sceneSetup. \n";
//-- 1)
global string $gChannelBoxName;
channelBox -e -precision 5 $gChannelBoxName;
//-- 2)
//currentUnit -linear "m" -angle "degree" -time ntsc;
currentUnit -linear m;
currentUnit -angle degree;
currentUnit -time ntsc;
playbackOptions -min 0;
playbackOptions -max 30;
playbackOptions -playbackSpeed 30;
autoKeyframe -state 1;
//-- 3)
grid -toggle 1 -size 10 -spacing 1 -divisions 1 -displayAxes 1 -displayGridLines 1 -displayDivisionLines 0 -displayPerspectiveLabels 0 -displayAxesBold 1 -orthographicLabelPosition "edge";
//-- 4)
//windowCrusher(1);
//--**
// Set Clip Planes on all Cameras
setAttr perspShape.farClipPlane 10000;
setAttr sideShape.farClipPlane 10000;
setAttr frontShape.farClipPlane 10000;
setAttr topShape.farClipPlane 10000;
print "sceneSetup Done.\n";
note: I sourced sceneSetup after Maya had completely loaded and it worked perfectly. It just doesnt seem to work when launched either in or from userSetup