我正在为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)
但它不起作用,因为,当然,查询标志只允许布尔值。。。在
这似乎是一个python绑定错误。 在Mel执行:
您可以发现他们查询的编码格式如下:
^{pr2}$所以我的建议是在这个案例中使用mel评估:
^{3}$相关问题 更多 >
编程相关推荐