Page 1 of 1

export via python?

Posted: Wed Aug 27, 2014 4:54 am
by egmehl
I'm considering adding Modo to my pipeline and I'm wondering if it's possible to export a .mxs scene via python? I'm coming from Max where I can basically just call one function with the output file as a parameter that triggers the built-in plugin export code and there it goes.

Is there a similar way of doing this in Modo + python?

Re: export via python?

Posted: Wed Aug 27, 2014 9:39 am
by Marton Day8
Hello,

You should invoke a modo command in python

The command is:

scene.saveAs "C:\#TEMP\mySceneName.mxs" "Maxwell MXS" false

Change C:\#TEMP\mySceneName.mxs to your output file name.


Márton

Re: export via python?

Posted: Wed Aug 27, 2014 6:18 pm
by egmehl
Perfect, thanks Márton!