mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
Remove active viewer warning.
- Because we set the context on the creation of the Root, the log error pop up appear unnecessarily. - Working with viewer is Nuke workflow behaviour which should not be explained by the pipeline. - Supporting finding the first viewer node in the scene.
This commit is contained in:
parent
6999c2a00a
commit
414d6a888d
1 changed files with 5 additions and 2 deletions
|
|
@ -392,8 +392,11 @@ def reset_frame_range_handles():
|
|||
try:
|
||||
vv = nuke.activeViewer().node()
|
||||
except AttributeError:
|
||||
log.error("No active viewer. Select any node and hit num `1`")
|
||||
return
|
||||
viewer_nodes = nuke.allNodes(filter="Viewer")
|
||||
if viewer_nodes:
|
||||
vv = viewer_nodes[0]
|
||||
else:
|
||||
return
|
||||
|
||||
range = '{0}-{1}'.format(
|
||||
int(asset["data"]["fstart"]),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue