Rik
Rik

Reputation: 43

How to open Maya without UI?

I'm currently making an Arnold batch-renderer in Python. I would like to open a maya scene without the UI and what I have is: C:\Program Files\Autodesk\Maya2018\bin\mayapy.exe

I don't know what to do, because this is too abstract for me.

Upvotes: 1

Views: 1852

Answers (1)

DrWeeny
DrWeeny

Reputation: 2512

here is a good tutorial/blog which helped me with mayapy :

but basicly, you just have to run a shell and then type :

mayapy /somepath/myscript.py

the script initializing maya standalone :

import maya.standalone as standalone
standalone.initialize(name='python')

and then any python command you want to run : opening a file, set up some settings, launch a render...etc

Upvotes: 1

Related Questions