Permalink
Browse files

Dome Diagnostics Update

  • Loading branch information...
AndrewHazelden committed Jun 17, 2017
1 parent 5f4c2d5 commit 65eeb04a4aaf7fe17edc1b9bd46657f3e574fd5b
@@ -1223,7 +1223,7 @@ global proc domeDiagnostics(){
}else{
$domeUserHomePathString = `getenv "HOME"`;
}
$domeDebugText += "### `USERPROFILE PATH`###\r\n> " + $domeUserHomePathString + "\r\n\r\n";
$domeDebugText += "### `USERPROFILE PATH` ###\r\n> " + $domeUserHomePathString + "\r\n\r\n";



@@ -14,7 +14,9 @@
------------------
2017-06-17

Added the "MAYA_IGNORE_DIALOGS" environment variable that is used to tell Maya to skip showing warning dialogs.
Added the "MAYA_IGNORE_DIALOGS" environment variable that is used to tell Maya to skip showing warning dialogs

Updated the wording of "Mac OS X" in the code and documentation to the newer "macOS" style

Version 2.1.2
------------------
@@ -160,7 +162,7 @@
The environment variable "MAYA_NO_INITIAL_AUTOLOAD_MT" can be used to exclude the autoloading of plugins like xgenToolkit and xgenMR that were added in Maya 2014+.
The environment variable "MAYA_CUSTOM_TEMPLATE_PATH" is used to define the path for the Maya 2016 XML property editor templates.
The environment variable "XPC_SERVICE_NAME" is typically set to a value like "com.autodesk.Maya.2016.226948"
The environment variable "IMF_PLUG_IN_PATH" lists the folder path for the mental ray tools like imf_display. On Maya 2016 on Mac OS X it is set to "/Applications/Autodesk/mentalrayForMaya2016/bin/image"
The environment variable "IMF_PLUG_IN_PATH" lists the folder path for the mental ray tools like imf_display. On Maya 2016 on macOS it is set to "/Applications/Autodesk/mentalrayForMaya2016/bin/image"

Version V1.9.1
--------------------
@@ -211,7 +213,7 @@
SEEXPR Software Env Vars:
SE_EXPR_PLUGINS

Mac & Linux Env Vars:
macOS & Linux Env Vars:
LD_LIBRARY_PATH

Version V1.8.3
@@ -244,7 +246,7 @@
-------------
2015-04-14

Updated the dome diagnostics tool to support Vray for Maya on Mac OS X environment variables
Updated the dome diagnostics tool to support Vray for Maya on macOS environment variables

Version 1.7.2
-------------
@@ -316,7 +318,7 @@
To open the sourceimages folder for the current project use:
source "domeDiagnostics.mel"; domeOpenSourceImagesDirectory();

To open the Mac OS X Activity Monitor / Windows Task Manager use:
To open the macOS Activity Monitor / Windows Task Manager use:
source "domeDiagnostics.mel"; openTaskManager();

Return the current operating system's path separator character:
@@ -365,7 +367,7 @@ global proc domeDiagnostics(){
}

// Win Example: C:/Users/hazelden/Desktop/Domemaster3D_Report_HP_hazelden.md
// Mac Example: /Users/hazelden/Desktop/Domemaster3D_Report_iMac_hazelden.md
// macOS Example: /Users/hazelden/Desktop/Domemaster3D_Report_iMac_hazelden.md
string $domeDebugLogPathString = domeGetDiagnosticsLogFilename();
$domeLogFileId = `fopen $domeDebugLogPathString "w"`;

@@ -423,7 +425,7 @@ global proc domeDiagnostics(){
}

int $domeFreeMemory;
// Only list RAM if running on Windows - Maya on Mac lists the free RAM as 0 MB!!!
// Only list RAM if running on Windows - Maya on macOS lists the free RAM as 0 MB!!!
if(getMayaPlatform() == "windows"){
// Memory check as an int in Maya 2015+
if($mayaVersion >= 2014){
@@ -617,7 +619,7 @@ global proc domeDiagnostics(){

// Maya Render Log filepath
// Win Example: C:/Users/hazelden/Documents/maya/mayaRenderLog.txt
// Mac Example: /Users/hazelden/Library/Logs/Maya/mayaRender.log
// macOS Example: /Users/hazelden/Library/Logs/Maya/mayaRender.log
// Linux Example: /home/hazelden/maya/mayaRender.log
string $domeMayaRenderLogPathString;

@@ -626,7 +628,7 @@ global proc domeDiagnostics(){
$domeUserHomePathString = `getenv "USERPROFILE"`;
$domeMayaRenderLogPathString = `getenv "MAYA_APP_DIR"` + "/mayaRenderLog.txt";
}else if(getMayaPlatform() == "darwin") {
// Mac Example: $Home = /Users/hazelden
// macOS Example: $Home = /Users/hazelden
$domeUserHomePathString = `getenv "HOME"`;
$domeMayaRenderLogPathString = $domeUserHomePathString + "/Library/Logs/Maya" + "/mayaRender.log";
}else{
@@ -1198,7 +1200,7 @@ global proc domeDiagnostics(){
string $pathString = `getenv "PATH"`;
$domeDebugText += "### `PATH` ###\r\n> " + $pathString + "\r\n\r\n";

// Mac & Linux library loading path
// macOS & Linux library loading path
$pathString = `getenv "LD_LIBRARY_PATH"`;
$domeDebugText += "### `LD_LIBRARY_PATH` ###\r\n> " + $pathString + "\r\n\r\n";

@@ -1221,7 +1223,7 @@ global proc domeDiagnostics(){
}else{
$domeUserHomePathString = `getenv "HOME"`;
}
$domeDebugText += "### `USERPROFILE PATH`###\r\n> " + $domeUserHomePathString + "\r\n\r\n";
$domeDebugText += "### `USERPROFILE PATH` ###\r\n> " + $domeUserHomePathString + "\r\n\r\n";



@@ -2011,7 +2013,7 @@ global proc domeOpenMayaRenderLogFile(){
$domeUserHomePathString = `getenv "USERPROFILE"`;
$domeMayaRenderLogPathString = `getenv "MAYA_APP_DIR"` + "/mayaRenderLog.txt";
}else if(getMayaPlatform() == "darwin") {
// Mac Example: $Home = /Users/hazelden
// macOS Example: $Home = /Users/hazelden
$domeUserHomePathString = `getenv "HOME"`;
$domeMayaRenderLogPathString = $domeUserHomePathString + "/Library/Logs/Maya" + "/mayaRender.log";
}else{
@@ -2058,7 +2060,7 @@ global proc domeOpenVrayRenderLogFile(){

$vrayLogFullPathString = $vrayLogDirString + $vrayLogFilenameString;
}else if(getMayaPlatform() == "darwin") {
// Mac
// macOS

// Check if a custom environment file path override was defined
if($vrayCustomLogFile != ""){
@@ -2135,7 +2137,7 @@ global proc domeOpenTextFile(string $textFilename){
}
}else if(getMayaPlatform() == "darwin") {

// Mac Platform
// macOS Platform
//$editorProgram = "edit";

// Note: Mavericks uses a terminal session for edit so it needs to be avoided
@@ -2498,7 +2500,7 @@ global proc domeLaunchMayaInstance(){
string $osSeparator = dome_osSeparator();

// The environment variable "MAYA_LOCATION" is the path to the current Maya program folder
// Mac MAYA_LOCATION=/Applications/Autodesk/maya2016/Maya.app/Contents
// macOS MAYA_LOCATION=/Applications/Autodesk/maya2016/Maya.app/Contents
string $mayaDirPathString = `getenv "MAYA_LOCATION"`;

string $runCommand = "";
@@ -2508,7 +2510,7 @@ global proc domeLaunchMayaInstance(){
// Windows
$runCommand = "start \"" + toNativePath($mayaDirPathString) + $osSeparator + "bin" + $osSeparator + "maya.exe" + "\"";
}else if(getMayaPlatform() == "darwin"){
// Mac
// macOS
//$runCommand = "\"" + $mayaDirPathString + $osSeparator + "bin" + $osSeparator + "maya" + "\"" + " &";
$runCommand = "open -a \"" + $mayaDirPathString + $osSeparator + "bin" + $osSeparator + "maya" + "\"";
}else{
@@ -2595,7 +2597,7 @@ global proc string dome_osSeparator(){
// Windows
$osSeparator = "\\";
}else if(getMayaPlatform() == "darwin"){
// Mac
// macOS
$osSeparator = "/";
}else{
// Linux
@@ -2622,7 +2624,7 @@ global proc string getMayaPlatformFancy(){
}else if(python("sys.platform == 'windows'")){
$mayaPlatform = "Windows";
}else if(python("sys.platform == 'darwin'")){
$mayaPlatform = "Mac OS X";
$mayaPlatform = "macOS";
}else{
$mayaPlatform = "Linux";
}
@@ -1223,7 +1223,7 @@ global proc domeDiagnostics(){
}else{
$domeUserHomePathString = `getenv "HOME"`;
}
$domeDebugText += "### `USERPROFILE PATH`###\r\n> " + $domeUserHomePathString + "\r\n\r\n";
$domeDebugText += "### `USERPROFILE PATH` ###\r\n> " + $domeUserHomePathString + "\r\n\r\n";



@@ -1223,7 +1223,7 @@ global proc domeDiagnostics(){
}else{
$domeUserHomePathString = `getenv "HOME"`;
}
$domeDebugText += "### `USERPROFILE PATH`###\r\n> " + $domeUserHomePathString + "\r\n\r\n";
$domeDebugText += "### `USERPROFILE PATH` ###\r\n> " + $domeUserHomePathString + "\r\n\r\n";



@@ -1223,7 +1223,7 @@ global proc domeDiagnostics(){
}else{
$domeUserHomePathString = `getenv "HOME"`;
}
$domeDebugText += "### `USERPROFILE PATH`###\r\n> " + $domeUserHomePathString + "\r\n\r\n";
$domeDebugText += "### `USERPROFILE PATH` ###\r\n> " + $domeUserHomePathString + "\r\n\r\n";



0 comments on commit 65eeb04

Please sign in to comment.