Created
November 20, 2017 15:26
-
-
Save paulwinex/0598cc07de0fb8e4b2814749a5648896 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import MaxPlus | |
class Max(object): | |
""" | |
Wrapper for 3DMax Proejct | |
""" | |
@staticmethod | |
def SetProject(path): | |
""" | |
Setup new project | |
""" | |
return MaxPlus.PathManager.SetProjectFolderDir(path) | |
# return MaxPlus.Core.EvalMAXScript('pathConfig.doProjectSetupSteps()') | |
return MaxPlus.Core.EvalMAXScript('pathConfig.doProjectSetupStepsUsingDirectory ("%s")' % path) | |
@staticmethod | |
def GetProject(): | |
""" | |
Return current project path | |
""" | |
return # ???? | |
@staticmethod | |
def ScenePath(): | |
""" | |
Return curretn scene path | |
""" | |
# return MaxPlus.PathManager.GetSceneDir() | |
return MaxPlus.FileManager.GetFileNameAndPath() | |
@staticmethod | |
def SaveScene(path): | |
""" | |
??? | |
""" | |
@staticmethod | |
def GetResources(): | |
""" | |
??? | |
""" | |
return [] | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment