Skip to content

Commit

Permalink
Merge pull request #75 from BigRoy/master
Browse files Browse the repository at this point in the history
Fix #74
  • Loading branch information
mottosso authored May 8, 2017
2 parents 2662d54 + 8e44af8 commit ef390f4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions capture.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,13 @@ def capture(camera=None,
if end_frame is None:
end_frame = cmds.playbackOptions(maxTime=True, query=True)

# (#74) Bugfix: `maya.cmds.playblast` will raise an error when playblasting
# with `rawFrameNumbers` set to True but no explicit `frames` provided.
# Since we always know what frames will be included we can provide it
# explicitly
if raw_frame_numbers and frame is None:
frame = range(int(start_frame), int(end_frame) + 1)

# We need to wrap `completeFilename`, otherwise even when None is provided
# it will use filename as the exact name. Only when lacking as argument
# does it function correctly.
Expand Down

0 comments on commit ef390f4

Please sign in to comment.