Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何通过 python 命令更改 Maya 中的当前渲染器。例如:“maya 软件”到“mental ray”,反之亦然任何 python 或 pymel 命令。?
import pymel.core as pm import maya.cmds as cmds
import maya.cmds as cmds
cmds.setAttr("defaultRenderGlobals.currentRenderer", "mentalRay", type="string")
cmds.setAttr("defaultRenderGlobals.currentRenderer", "mayaSoftware", type="string")