Skip to content

Commit

Permalink
Merge branch '1-0-3-Beta' into master-2
Browse files Browse the repository at this point in the history
  • Loading branch information
liorbenhorin committed Sep 24, 2016
2 parents 6c2ef9e + c5e2fc6 commit 720369d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
10 changes: 9 additions & 1 deletion modules/maya_warpper.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,9 +247,17 @@ def playblast(path = None,format = None, compression = None, hud = None, offscre
end = cmds.playbackOptions( q=True,max=True )
range = [start, end]

cmds.playblast(startTime =range[0] ,endTime =range[1], f = path, fmt=format, orn=hud, os=offscreen, wh = scene_resolution(), p=scale, qlt=90,c=compression, v=True)
cmds.playblast(startTime =range[0] ,endTime =range[1], f = path, fmt=format, orn=hud, os=offscreen, wh = scene_resolution(), p=scale, qlt=90,c=compression, v=True, s = qeury_active_sound_node())


def qeury_active_sound_node():
aPlayBackSliderPython = mel.eval('$tmpVar=$gPlayBackSlider')
sound = cmds.timeControl(aPlayBackSliderPython, q=1, s=1)
if sound:
return sound
else:
return None

def playback_selection_range():
aPlayBackSliderPython = mel.eval('$tmpVar=$gPlayBackSlider')
time_selection = cmds.timeControl( aPlayBackSliderPython, q=True,rng=True )[1:-1]
Expand Down
7 changes: 5 additions & 2 deletions pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -2683,7 +2683,9 @@ def set_icons(self):
self.ui.import_shot_version_pushButton.setIcon(QtGui.QIcon(import_icon))
self.ui.export_shot_pushButton.setIcon(QtGui.QIcon(export_icon))
self.ui.playblast_shot_pushButton.setIcon(QtGui.QIcon(camrea_icon))


self.ui.export_shot_pushButton.setHidden(True)

self.ui.comp_icon_label.setPixmap(new_icon.scaled(16,16))
self.ui.comp_user_label.setPixmap(users_icon.scaled(16,16))
self.ui.comp_note_label.setPixmap(edit_icon.scaled(16,16))
Expand Down Expand Up @@ -5538,8 +5540,9 @@ def run2017():
workspaceControlName = self.objectName() + 'WorkspaceControl'
self.deleteControl(workspaceControlName)
self.show(dockable=True, area='right', floating=False )
cmds.workspaceControl(workspaceControlName, e=True, ttc=["AttributeEditor",-1], wp="preferred")
cmds.workspaceControl(workspaceControlName, e=True, ttc=["AttributeEditor",-1], wp="preferred", mw=420)
self.raise_()
self.setMinimumWidth(420)
self.setDockableParameters(width=420)


Expand Down

0 comments on commit 720369d

Please sign in to comment.