---
title: "mentalray cause maya2012 crash on standalone mode"
author: "schi"
date: "2013-03-28T20:27:19Z"
tags: ["maya"]
categories: ["行业应用"]
slug: "mentalray-cause-maya2012-crash-on-standalone-mode"
draft: false
lastmod: "2013-03-28T20:27:19Z"
id: 1838221
url: "https://schi.iteye.com/blog/1838221"
---

如果你想使用maya2012和python来做些批处理，你就要小心mentalray了。不信你可以执行下面的代码

```python
import maya.standalone as ms

ms.initialize(name="python")
from maya import cmds
cmds.loadPlugin("Mayatomr.mll")
print "Mayatomr.mll loaded............."
```

最简单的解决方法就是别用maya2012，换其它版本。