Got this somewhat further, with newfound knowledge of Xvfb.

$ yum install xorg-x11-server-Xorg
$ Xvfb :99 -screen 0 1024x768x16 2>/dev/null &
$ mayapy -c "from maya import standalone, cmds; \
   standalone.initialize(); \
   cmds.playblast(format='image')"

In a nutshell how it works is that as far as Maya is concerned, there is an
X environment running, only it’s running entirely in-memory.

The problem now is that it tries running a playblast with Viewport 2.0.

# VP2 Error : Failed to initialize graphics device.

Is there any way of playblasting without Viewport 2.0? Or any way of
disabling it entirely? Alternatively, what kind of drivers can I install to
emulate whatever it needs, e.g. mesa?

I’m expecting Viewport 2.0 to have more advanced requirements than what
Mesa is capable of, but could be wrong. It might not work with Legacy
either.

Thanks!
​

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to python_inside_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CAFRtmODa2QzbXkKJuHqHU%3DeEW59EZ1dTbzgCFXxaGnsA1WYm7w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to