Skip to content

Instantly share code, notes, and snippets.

@paulwinex
Created November 20, 2017 15:26
Show Gist options
  • Save paulwinex/0598cc07de0fb8e4b2814749a5648896 to your computer and use it in GitHub Desktop.
Save paulwinex/0598cc07de0fb8e4b2814749a5648896 to your computer and use it in GitHub Desktop.
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