preserve all references when importing a maya template

This commit is contained in:
Seyedmohammadreza Hashemizadeh 2023-04-05 18:43:19 +02:00
parent 9f027def95
commit 17d39cc356

View file

@ -43,7 +43,13 @@ class MayaTemplateBuilder(AbstractTemplateBuilder):
))
cmds.sets(name=PLACEHOLDER_SET, empty=True)
new_nodes = cmds.file(path, i=True, returnNewNodes=True)
new_nodes = cmds.file(
path,
i=True,
returnNewNodes=True,
preserveReferences=True,
loadReferenceDepth="all",
)
cmds.setAttr(PLACEHOLDER_SET + ".hiddenInOutliner", True)