mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
Fix Nuke model loader to load full geo hierarchy by default
This commit is contained in:
parent
49430a08b9
commit
df26ddd1eb
1 changed files with 7 additions and 0 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue