File tree Expand file tree Collapse file tree 2 files changed +11
-9
lines changed Expand file tree Collapse file tree 2 files changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -24,15 +24,15 @@ class Integrations
24
24
#elif UNITY_EDITOR_LINUX
25
25
private const string REL_MAYA_MODULES_PATH = "Maya/" + VERSION_TAG + "/modules" ;
26
26
#else
27
- private const string REL_MAYA_MODULES_PATH = "My Documents/Maya /" + VERSION_TAG + "/modules" ;
27
+ private const string REL_MAYA_MODULES_PATH = "maya /" + VERSION_TAG + "/modules" ;
28
28
#endif
29
29
30
30
private static string GetUserFolder ( )
31
31
{
32
32
#if UNITY_EDITOR_OSX || UNITY_EDITOR_LINUX
33
33
return System . Environment . GetEnvironmentVariable ( "HOME" ) ;
34
34
#else
35
- return System . Environment . GetFolderPath ( System . Environment . SpecialFolder . Personal )
35
+ return System . Environment . GetFolderPath ( System . Environment . SpecialFolder . Personal ) ;
36
36
#endif
37
37
}
38
38
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ Command-line Installing Maya2017 Integration
17
17
18
18
You can install the package and integrations from the command-line using the following script:
19
19
20
- MacOS
20
+ MacOS:
21
21
22
22
export UNITY3D_PATH=/Applications/Unity\ 2017.1.0f3/Unity.app/Contents/MacOS/Unity
23
23
@@ -32,10 +32,12 @@ export FBXEXPORTERS_PACKAGE_PATH=${PROJECT_PATH}/${PACKAGE_NAME}_${PACKAGE_VERSI
32
32
# Use "InstallMaya2017CommandsOnly" to install without UI
33
33
"${UNITY3D_PATH}" -batchMode -projectPath "${PROJECT_PATH}" -executeMethod FbxExporters.Integrations.InstallMaya2017 -quit
34
34
35
- Configuring Maya2017
36
- --------------------
35
+ Configuring Auto-loading of plugin in Maya2017
36
+ ----------------------------------------------
37
+
38
+ MacOS:
39
+
40
+ export MAYA_PATH=/Applications/Autodesk/maya2017/Maya.app/Contents/bin/maya
41
+
42
+ "${MAYA_PATH}" -command "loadPlugin unityOneClickPlugin; pluginInfo -edit -autoload true unityOneClickPlugin;quit;"
37
43
38
- # run this mel script
39
- # configure Maya to autoload plugin
40
- loadPlugin unityOneClickPlugin;
41
- pluginInfo -edit -autoload true unityOneClickPlugin;
You can’t perform that action at this time.
0 commit comments