本文整理汇总了Python中Red9_General.thumbNailScreen方法的典型用法代码示例。如果您正苦于以下问题:Python Red9_General.thumbNailScreen方法的具体用法?Python Red9_General.thumbNailScreen怎么用?Python Red9_General.thumbNailScreen使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Red9_General
的用法示例。
在下文中一共展示了Red9_General.thumbNailScreen方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: poseSave
# 需要导入模块: import Red9_General [as 别名]
# 或者: from Red9_General import thumbNailScreen [as 别名]
def poseSave(self, nodes, filepath=None, useFilter=True, storeThumbnail=True):
'''
Entry point for the generic PoseSave.
:param nodes: nodes to store the data against OR the rootNode if the
filter is active.
:param filepath: posefile to save - if not given the pose is cached on this
class instance.
:param useFilter: use the filterSettings or not.
'''
#push args to object - means that any poseHandler.py file has access to them
self.filepath=filepath
self.useFilter=useFilter
if self.filepath:
log.debug('PosePath given : %s' % filepath)
self.buildInternalPoseData(nodes)
if self.filepath:
self._writePose(filepath)
if storeThumbnail:
sel=cmds.ls(sl=True,l=True)
cmds.select(cl=True)
r9General.thumbNailScreen(filepath,self.thumbnailRes[0],self.thumbnailRes[1])
if sel:
cmds.select(sel)
log.info('Pose Saved Successfully to : %s' % filepath)