Fix Nuke model loader to load full geo hierarchy by default

This commit is contained in:
Gábor Marinov 2022-06-12 00:18:07 +02:00
parent 49430a08b9
commit df26ddd1eb

View file

@ -60,6 +60,10 @@ class AlembicModelLoader(load.LoaderPlugin):
inpanel=False
)
model_node.forceValidate()
# workaround to load all geo nodes, not just top level ones
model_node.knob('scene_view').setAllItems(model_node.knob('scene_view').getAllItems(), True)
model_node["frame_rate"].setValue(float(fps))
# workaround because nuke's bug is not adding
@ -142,6 +146,9 @@ class AlembicModelLoader(load.LoaderPlugin):
model_node["frame_rate"].setValue(float(fps))
model_node["file"].setValue(file)
# workaround to load all geo nodes, not just top level ones
model_node.knob('scene_view').setAllItems(model_node.knob('scene_view').getAllItems(), True)
# workaround because nuke's bug is
# not adding animation keys properly
xpos = model_node.xpos()