播放预览查询压缩

2024-09-29 10:30:14 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在为Maya开发一个自定义播放预览工具,但在如何查询每个格式的可用压缩以执行播放预览时遇到了一个小问题。在

我可以使用:

import pymel.core as pm

availableFormats = pm.playblast(query = True, format = True)
print availableFormats 

我得到的结果是['qt','avi','image']。这很好,但现在我需要压缩选项。在

当我使用

^{pr2}$

我得到:

[u'Codec IYUV', u'MS-RLE', u'MS-CRAM', u'MS-YUV', u'Toshiba YUV411', u'TSCC', u'TSC2', u'none']

以下是“avi”格式的压缩选项。在

所以,问题是:

如何查询特定格式的压缩?在

我试着传球:

pm.playblast(query = True, format = 'qt', compression  = True)

但它不起作用,因为,当然,查询标志只允许布尔值。。。在


Tags: 工具importtrueformat格式选项qtquery
1条回答
网友
1楼 · 发布于 2024-09-29 10:30:14

这似乎是一个python绑定错误。 在Mel执行:

whatIs changePlayblastFormat;
// Result: Mel procedure found in: /path/mayaxxxx/scripts/others/performPlayblast.mel //

您可以发现他们查询的编码格式如下:

^{pr2}$

所以我的建议是在这个案例中使用mel评估:

^{3}$

相关问题 更多 >