If cmds.window(winName, query=True, exists=True): leteUI(winName) WidthHeight = utilMod.getRenderResolution() RangeVisible = cmds.timeControl(G.playBackSliderPython, query=True, rangeVisible=True ) Overscan = cmds.getAttr("%s.overscan"%camera)ĪudioTrack = cmds.timeControl(G.playBackSliderPython, query=True, sound=True) #ayblast( completeFilename = str(i) + '.mov', startTime = start, endTime = end, viewer = True, clearCache = True, percent = 100, quality = 100, format = "qt", framePadding = 20 )Ĭmds.modelEditor( focus, edit = True, cameras = True, locators = True) Print 'keyframes found, playblasting their start to end'Ĭmds.playblast (startTime = start, endTime = end, format = "qt", compression = "Sorenson Video 3", filename = desktop + sceneName + '_' + str(i) + '.mov', sequenceTime = 0, clearCache = 1, viewer = 0, showOrnaments = 1, fp = 4, percent = 100, quality = 100, widthHeight = ) Print 'no keyframes on this one, playblasting timeline duration'Ĭmds.playblast (format = "qt", compression = "Sorenson Video 3", filename = desktop + sceneName + '_' + str(i) + '.mov', clearCache = 1, viewer = 0, showOrnaments = 1, fp = 4, percent = 100, quality = 100, widthHeight = ) If start = end: # this means there's no keyframes If '.mb' in sceneNameFull or '.ma' in sceneNameFull:Ĭmds.modelPanel( focus, edit=True, camera = x )Ĭmds.modelEditor( focus, edit = True, cameras = False, locators = False) SceneNameFull = cmds.file(query = True, shortName = True, sceneName = True) Start = cmds.findKeyframe( i, which="first" )Įnd = cmds.findKeyframe( i, which="last" ) #self.viewport_lay.addWidget( uiH.toQtObject( self.executer ) ) Mc.modelEditor(self.executer, e = True, grid = 0, da = "smoothShaded", allObjects = 0, nurbsSurfaces = 1, polymeshes = 1, subdivSurfaces = 1 ) Self.executer = mc.modelPanel( mbv = False, camera =, p = layout ) Self.camShape = mn.createNode( 'camera', ss = True ) Layout = (long(shiboken.getCppPointer(self.viewport_lay))) Super(PoseThumbnailCreatorUi, self)._init_(parent) NewNamespaces = cmds.namespaceInfo(listOnlyNamespaces=True)ĭef _init_(self, project, pose = None, parent = uiH.getMayaWindow() ): # find new namespaces in scene (this is here in case I need to do something later and I need the new name that was created) Panels = cmds.getPanel(type="modelPanel")Įditor = cmds.modelPanel(panel, q=True, modelEditor=True)Ĭmds.modelEditor(editor, edit=True, displayAppearance="smoothShaded", displayTextures=True, textures=True) RigPath, r=True, type="mayaBinary", loadReferenceDepth="all", namespace=selectedCharacter, options="v=0" Namespaces = cmds.namespaceInfo(listOnlyNamespaces=True) Self.mayaToolsDir, "General", "ART", "Projects", project, "AnimRigs", selectedCharacter + ".mb" SelectedCharacter = cmds.textScrollList(self.widgets, q=True, si=True) Project = cmds.optionMenu(self.widgets, q=True, value=True) ( modelPanelForm, 'left', 15 ), ( modelPanelForm, 'right', 15 ), ( modelPanelForm, 'bottom', 15 ), ModelPanelForm = ()īutton = cmds.button( l='S E L E C T P L A N E', h=22, p=form, c= partial( WinA_Cmd.selectController, ),Ĭmds.modelEditor(, edit=1, displayAppearance='smoothShaded',Īf=[ ( modelEditorForm, 'top', 15 ), ( modelEditorForm, 'left', 15 ), ( modelEditorForm, 'right', 15 ), Cmds.window( self.winName, title=self.title )
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |