mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 13:24:54 +01:00
Assert vraySettings node exists
This commit is contained in:
parent
46936419b6
commit
7fcb074351
1 changed files with 5 additions and 0 deletions
|
|
@ -37,6 +37,11 @@ class CollectVRayScene(pyblish.api.ContextPlugin):
|
|||
|
||||
vrscene_data = host.read(vray_scene)
|
||||
|
||||
assert cmds.ls("vraySettings", type="VRaySettingsNode"), (
|
||||
"VRay Settings node does not exists. "
|
||||
"Please ensure V-Ray is the current renderer."
|
||||
)
|
||||
|
||||
# Output data
|
||||
start_frame = int(cmds.getAttr("defaultRenderGlobals.startFrame"))
|
||||
end_frame = int(cmds.getAttr("defaultRenderGlobals.endFrame"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue