当前位置 : 主页 > 网络编程 > 其它编程 >

Maya_VRay渲染器属性设置

来源:互联网 收集:自由互联 发布时间:2023-07-02
#-*-coding:utf-8-*-@Author:Meng@software:PyCharm@file:VRayForMaya渲染器渲染属性设置@time:2022031920 # -*- coding: utf-8 -*-"""@Author: Meng@software: PyCharm@file: VRay For Maya渲染器渲染属性设置@time: 2022/03/19 20:39"""im
#-*-coding:utf-8-*-@Author:Meng@software:PyCharm@file:VRayForMaya渲染器渲染属性设置@time:2022031920

# -*- coding: utf-8 -*-"""@Author: Meng@software: PyCharm@file: VRay For Maya渲染器渲染属性设置@time: 2022/03/19 20:39"""import maya.cmds as cmds#切换VRay渲染器mel.eval('setCurrentRenderer "vray"')#输出格式路径cmds.setAttr("vraySettings.fileNamePrefix", "\\\\", type="string")#图像格式cmds.setAttr("vraySettings.imageFormatStr", "exr (multichannel)", type="string")#开始结束帧cmds.setAttr("vraySettings.animType", 1)cmds.setAttr("defaultRenderGlobals.startFrame", 1)cmds.setAttr("defaultRenderGlobals.endFrame", 50)#采样cmds.setAttr("vraySettings.progressiveMinSubdivs", 2)cmds.setAttr("vraySettings.progressiveMaxSubdivs", 100)#添加VRay_AOVScmds.delete(cmds.ls(type="VRayRenderElement"))#RedshiftAOVimport vray.vray_maya_utils as vrayModulevrayModule.vrayImportAOV("E:/1_Maya_Projects/test/Vray/aov.mb")#刷新uimel.eval('vrayUpdateExrAttributesControl')

 

【转自:东台网站建设公司 http://www.1234xp.com/dongtai.html 欢迎留下您的宝贵建议】
网友评论