This commit is contained in:
Kayla Man 2023-09-13 18:21:17 +08:00
parent 199d099a59
commit 78ec30cb39
2 changed files with 3 additions and 3 deletions

View file

@ -166,8 +166,6 @@ def containerise(name: str, nodes: list, context,
}
container_name = f"{namespace}:{name}{suffix}"
container = rt.container(name=container_name)
#for node in nodes:
# node.Parent = container
import_custom_attribute_data(container, nodes)
if not lib.imprint(container_name, data):
print(f"imprinting of {container_name} failed.")
@ -211,6 +209,7 @@ def import_custom_attribute_data(container: str, selections: list):
container.modifiers[0].openPypeData,
"sel_list", sel_list)
def update_custom_attribute_data(container: str, selections: list):
"""Updating the Openpype/AYON custom parameter built by the creator
@ -223,6 +222,7 @@ def update_custom_attribute_data(container: str, selections: list):
rt.deleteModifier(container, container.modifiers[0])
import_custom_attribute_data(container, selections)
def get_previous_loaded_object(container: str):
"""Get previous loaded_object through the OP data

View file

@ -81,7 +81,7 @@ class FbxLoader(load.LoaderPlugin):
fbx_object.pos = transform_data[
f"{fbx_object.name}.transform"] or fbx_object.pos
fbx_object.scale = transform_data[
f"{fbx_object.name}.scale"] or fbx_object.scale
f"{fbx_object.name}.scale"] or fbx_object.scale
with maintained_selection():
rt.Select(node)