fix(nuke): loader was too strict for properties frame start/and

maya is not adding them to version and it would be crashing
This commit is contained in:
Jakub Jezek 2020-09-30 10:28:38 +02:00
parent 0ac12df93d
commit dce6ab4942
No known key found for this signature in database
GPG key ID: C4B96E101D2A47F3

View file

@ -31,7 +31,7 @@ class AlembicCameraLoader(api.Loader):
# prepare data for imprinting
# add additional metadata from the version to imprint to Avalon knob
add_keys = ["frameStart", "frameEnd", "source", "author", "fps"]
add_keys = ["source", "author", "fps"]
data_imprint = {"frameStart": first,
"frameEnd": last,
@ -55,6 +55,8 @@ class AlembicCameraLoader(api.Loader):
camera_node["frame_rate"].setValue(float(fps))
camera_node["tile_color"].setValue(int("0x3469ffff", 16))
camera_node["reload"].execute()
return containerise(
node=camera_node,
name=name,