Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
Merge pull request #3562 from pypeclub/OP-3363_Camera-Overscan-Attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
mkolar authored Jul 26, 2022
2 parents caedd0e + d7917b1 commit cc39f44
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions openpype/vendor/python/common/capture.py
Original file line number Diff line number Diff line change
Expand Up @@ -665,15 +665,22 @@ def _applied_camera_options(options, panel):

_iteritems = getattr(options, "iteritems", options.items)
for opt, value in _iteritems():
_safe_setAttr(camera + "." + opt, value)
if cmds.getAttr(camera + "." + opt, lock=True):
continue
else:
_safe_setAttr(camera + "." + opt, value)

try:
yield
finally:
if old_options:
_iteritems = getattr(old_options, "iteritems", old_options.items)
for opt, value in _iteritems():
_safe_setAttr(camera + "." + opt, value)
#
if cmds.getAttr(camera + "." + opt, lock=True):
continue
else:
_safe_setAttr(camera + "." + opt, value)


@contextlib.contextmanager
Expand Down

0 comments on commit cc39f44

Please sign in to comment.