Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
preserve all references when importing a maya template
Browse files Browse the repository at this point in the history
  • Loading branch information
Seyedmohammadreza Hashemizadeh committed Apr 5, 2023
1 parent 65e0273 commit d67d965
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion openpype/hosts/maya/api/workfile_template_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,13 @@ def import_template(self, path):
))

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)

Expand Down

0 comments on commit d67d965

Please sign in to comment.