Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
BigRoy committed May 12, 2017
1 parent b037f3a commit b15b850
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions capture.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import re
import sys
import contextlib
import logging

from maya import cmds
from maya import mel
Expand All @@ -22,6 +23,8 @@
__version__ = "%s.%s.%s" % version_info
__license__ = "MIT"

log = logging.getLogger(__name__)


def capture(camera=None,
width=None,
Expand Down Expand Up @@ -130,6 +133,13 @@ def capture(camera=None,
if complete_filename is not None:
filename = None

# (#78) Only image format supports raw frame numbers so we ignore it
# when calling it with a different format
if format != "image" and raw_frame_numbers:
log.warning("Capturing to non-image format with raw frame numbers is "
"not supported: %s. Ignoring raw frame numbers.", format)
raw_frame_numbers = False

# (#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
Expand Down

0 comments on commit b15b850

Please sign in to comment.