mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Handle locked attributes for playblast capture.
This commit is contained in:
parent
ba408afb3b
commit
d7917b1950
1 changed files with 9 additions and 2 deletions
11
openpype/vendor/python/common/capture.py
vendored
11
openpype/vendor/python/common/capture.py
vendored
|
|
@ -665,7 +665,10 @@ 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
|
||||
|
|
@ -673,7 +676,11 @@ def _applied_camera_options(options, panel):
|
|||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue