mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
Skip extraction when no visible nodes found in frame range
This commit is contained in:
parent
a521c87838
commit
3b8b479712
2 changed files with 14 additions and 0 deletions
|
|
@ -86,6 +86,13 @@ class ExtractAnimation(openpype.api.Extractor):
|
|||
nodes = get_visible_in_frame_range(nodes,
|
||||
start=start,
|
||||
end=end)
|
||||
if not nodes:
|
||||
self.log.warning(
|
||||
"No visible nodes found in frame range {}-{}. "
|
||||
"Skipping extraction because `visibleOnly` is enabled on "
|
||||
"the instance.".format(start, end)
|
||||
)
|
||||
return
|
||||
|
||||
with suspended_refresh():
|
||||
with maintained_selection():
|
||||
|
|
|
|||
|
|
@ -89,6 +89,13 @@ class ExtractAlembic(openpype.api.Extractor):
|
|||
nodes = get_visible_in_frame_range(nodes,
|
||||
start=start,
|
||||
end=end)
|
||||
if not nodes:
|
||||
self.log.warning(
|
||||
"No visible nodes found in frame range {}-{}. "
|
||||
"Skipping extraction because `visibleOnly` is enabled on "
|
||||
"the instance.".format(start, end)
|
||||
)
|
||||
return
|
||||
|
||||
with suspended_refresh():
|
||||
with maintained_selection():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue