From 453c6218b6a053bd1b4f2445e61e23ab51a9e1a1 Mon Sep 17 00:00:00 2001 From: Roy Nieterau Date: Wed, 1 Feb 2017 17:35:50 +0100 Subject: [PATCH 1/3] Add missing ViewportOptions keys #69 --- capture.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/capture.py b/capture.py index 4384d88..7938126 100644 --- a/capture.py +++ b/capture.py @@ -266,13 +266,17 @@ def replace(m): "selectionHiliteDisplay": False, "headsUpDisplay": True, # object display + "imagePlane": True, "nurbsCurves": False, "nurbsSurfaces": False, "polymeshes": True, "subdivSurfaces": False, + "planes": True, "cameras": False, + "controlVertices": True, "lights": False, "grid": False, + "hulls": True, "joints": False, "ikHandles": False, "deformers": False, From bc7ecb6eb8be5a870f8e8cb5e8c53bd5f166442b Mon Sep 17 00:00:00 2001 From: Roy Nieterau Date: Wed, 1 Feb 2017 18:01:18 +0100 Subject: [PATCH 2/3] Add frame padding argument --- capture.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/capture.py b/capture.py index 7938126..3d41057 100644 --- a/capture.py +++ b/capture.py @@ -34,6 +34,7 @@ def capture(camera=None, isolate=None, maintain_aspect_ratio=True, overwrite=False, + frame_padding=4, raw_frame_numbers=False, camera_options=None, display_options=None, @@ -67,6 +68,8 @@ def capture(camera=None, overwrite (bool, optional): Whether or not to overwrite if file already exists. If disabled and file exists and error will be raised. + frame_padding (bool, optional): Number of zeros used to pad file name + for image sequences. raw_frame_numbers (bool, optional): Whether or not to use the exact frame numbers from the scene or capture to a sequence starting at zero. Defaults to False. When set to True `viewer` can't be used @@ -163,6 +166,7 @@ def capture(camera=None, filename=filename, widthHeight=[width, height], rawFrameNumbers=raw_frame_numbers, + framePadding=frame_padding, **playblast_kwargs) return output From 1fc46d67359871200d4519d226199051290db34a Mon Sep 17 00:00:00 2001 From: Roy Nieterau Date: Tue, 14 Feb 2017 09:27:05 +0100 Subject: [PATCH 3/3] Version bump (patch) --- capture.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/capture.py b/capture.py index 3d41057..e75f88d 100644 --- a/capture.py +++ b/capture.py @@ -11,7 +11,7 @@ from maya import cmds from maya import mel -version_info = (2, 1, 0) +version_info = (2, 1, 1) __version__ = "%s.%s.%s" % version_info __license__ = "MIT"