Search code examples
pythonexternalmaya

Set maya project from an external script


I have a python script to open maya file and I want to set the project before opening the file ?

I try to find a file or an environement variable which is defining the current project path but I don't if it exists, do you know how I can do it ?


Solution

  • https://knowledge.autodesk.com/support/maya/learn-explore/caas/CloudHelp/cloudhelp/2015/ENU/Maya/files/Interface-overview-Start-Maya-from-the-command-line--htm.html

    You have all files describe in the doc. You may be interrested into :

    -command [mel command]
    -proj [dir]
    -script [file]