Arnold命令行渲染
2017-03-26 14:16阅读:
公用选项:
-help
打印帮助
-test
打印 mel 命令,但不执行。
-verb
执行这些命令之前打印 MEL 命令。
-keepMel
保存临时 MEL 文件。
-listRenderers 列出所有可用的渲染器。
-renderer 或 -r (string)
指定使用的渲染器(sw,hw,mr,arnold,vray)
-proj (string) 指定工程目录
-log (string)
指定渲染日志文件的位置
通用标志
-rd (string)
指定输出图片路径
-im (string)
输出件名称
-rt (int)
渲染类型 (0 = 直接渲染, 1 = 导出ass, 2 =导出ass
用kick渲染)
-lic (boolean)
br>
许可证开启/关闭
帧编号选项
-s (float)
动画序列的开始帧。
-e (float)
动画序列的结束帧。
-b (float)
动画序列的帧数或步长。
-pad (int)
输出图像帧文件的扩展名的数字位数。
渲染层和通道
-rl
(boolean:name)
分别渲染每个层
-rp
(boolean:name)
分别渲染通道。“all”将渲染所有通道
-sel
(boolean:name)
选择要渲染的对象、组和/或集。
-l
(boolean:name)
选择显示和渲染的层渲染
摄像机选项
-cam
(string)
指定渲染摄像机
-rgb (boolean)
开启/关闭RGB输出
-alpha (boolean)
开启/关闭alpha输出
-depth (boolean)
开启/关闭depth输出
分辨率选项
-x (int)
设置 渲染图片的宽度
-y (int)
设置 渲染图片的高度
-percentRes (float)
使用百分比分辨率
-ard (float)
纵横比
-reg (int)
设置 渲染区域
采样选项
-ai:as (int)
设置 anti-aliasing 采样
-ai:hs (int)
设置 indirect diffuse 采样
-ai:gs (int)
设置 indirect specular 采样
-ai:rs (int)
设置 refraction 采样
采样抑制
-ai:cmpsv (boolean)
开启/关闭采样抑制
-ai:aovsc (boolean)
采样抑制是否影响AOVs.
-ai:aasc (int)
采样抑制的最大值
光线深度选项
-ai:td (int)
设置总数.
-ai:dif (int)
设置 indirect diffuse 深度.
-ai:glo (int)
设置 indirect specular 深度.
-ai:rfl (int)
设置 reflection 深度.
-ai:rfr (int)
设置 refraction 深度.
-ai:vol (int)
设置 volume GI 深度.
-ai:atd (int)
设置 auto-transparency 深度.
-ai:att (float)
设置 auto-transparency threshold.
运动模糊
-ai:mben (boolean)
开启/关闭运动模糊.
-ai:mbdf (boolean)
开启/关闭 物体形变运动模糊.
-ai:mbcen (boolean)
开启/关闭 相机运动模糊.
-ai:mbrt (int)
位置. (0 - 帧的开始, 1 - 帧的中心, 2 - 帧的结尾, 3 -
自定义)
-ai:mbfr (float)
快门长度.
-ai:mbstart (float)
模糊开始.
-ai:mbend (float)
模糊结束.
-ai:mbms (int)
模糊步数.
灯光
-ai:llth (float)
灯光阈值.
-ai:ll (int)
灯光链接模式. (0 - 无, 1 - maya灯光链接)
-ai:sl (int)
阴影链接模式. (0 - 无, 1 - 跟随灯光链接, 2 - maya)
细分
-ai:mxsb (int)
最大细分等级.
渲染设置
-ai:threads (int)
设置线程数.
-ai:bscn (int)
渲染块. (0 - 从上, 1 - 从下, 2 - 从左, 3 -从右, 4 -
随机, 5 - 编织, 6 - 螺旋, 7 - Hilbert)
-ai:bsz (int)
渲染块大小.
-ai:bass (boolean)
Binary Ass 导出.
-ai:exbb (boolean)
导出Bounding box.
-ai:aerr (boolean)
遇到错误停止渲染.
-ai:alf (boolean)
许可证失败停止渲染.
-ai:slc (boolean)
跳过许可证检查.
-ai:uopt (string)
用户选项
-ai:port (int)
设置 批渲染端口
-ai:ofn (string)
原始文件名.
贴图
-ai:txamm (boolean)
开启/关闭 贴图自动 mipmap.
-ai:txaun (boolean)
接受无标题的贴图.
-ai:txett (boolean)
使用存在的tiled 贴图.
-ai:txaum (boolean)
接受 unmipped 贴图.
-ai:txat (int)
自动 tile 大小.
-ai:txmm (float)
贴图缓存的最大值. (MB)
-ai:txmof (int)
打开贴图的最大数.
-ai:txdb (float)
贴图diffuse模糊值.
-ai:txgb (float)
贴图glossy 模糊值.
覆盖功能
-ai:fotx (boolean)
忽略 贴图.
-ai:fosh (boolean)
忽略 材质.
-ai:foat (boolean)
忽略 大气.
-ai:folt (boolean)
忽略 灯光.
-ai:fosw (boolean)
忽略 阴影.
-ai:fosd (boolean)
忽略 细分.
-ai:fodp (boolean)
忽略 置换.
-ai:fobp (boolean)
忽略 凹凸.
-ai:fosm (boolean)
忽略 圆滑.
-ai:fomb (boolean)
忽略 运动模糊.
-ai:fosss (boolean)
忽略 SSS.
-ai:fodof (boolean)
忽略 景深.
搜索路径
-ai:sppg (string)
插件搜索路径.
-ai:sppr (string)
程序搜索路径.
-ai:spsh (string)
材质搜索路径.
-ai:sptx (string)
贴图搜索路径.
日志
-ai:lfn (string)
日志文件名.
-ai:ltc (boolean)
日志到控制台.
-ai:ltf (boolean)
日志到文件.
-ai:lve (int)
冗长等级. (0 - 错误, 1 - 警告信息, 2- Debug)
-ai:lmw (int)
警告最大数.
范例
'D:\Autodesk Maya 2016\Maya2016\bin\render'
-proj
F:\Work\Plants_1
-r arnold
-s 1
-e 10
-rd F:\Work\Plants_1\images
F:\Work\Plants_1\scenes\cam.mb
pause
--------------------------------------------------------------------------------
一般最后写完命令行后,会单独写一个pause,以便检查错误。
还有一些简洁的写法,自行研究。
MEL 回调
| 标志 |
定义 |
-preRender
|
渲染前执行的 MEL 代码。
|
-postRender
|
渲染后执行的 MEL 代码。
|
-preLayer
|
每个渲染层之前执行的 MEL 代码。
|
-postLayer
|
每个渲染层之后执行的 MEL 代码。
|
-preFrame
|
每一帧之前执行的 MEL 代码。
|
-postFrame
|
每一帧之后执行的 MEL 代码。
|
-pre string
|
已废弃的标志。
|
-post string
|
已废弃的标志。
|