mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
Account for references and children of patches
This commit is contained in:
parent
c0da2c8afc
commit
239995f715
1 changed files with 7 additions and 1 deletions
|
|
@ -61,6 +61,12 @@ class ExtractXgenCache(publish.Extractor):
|
|||
fullPath=True
|
||||
)[0]
|
||||
|
||||
# Discard the children.
|
||||
shapes = cmds.listRelatives(duplicate_transform, shapes=True)
|
||||
children = cmds.listRelatives(duplicate_transform, children=True)
|
||||
cmds.delete(set(children) - set(shapes))
|
||||
|
||||
# Connect attributes.
|
||||
cmds.connectAttr(
|
||||
"{}.matrix".format(duplicate_transform),
|
||||
"{}.transform".format(node),
|
||||
|
|
@ -97,7 +103,7 @@ class ExtractXgenCache(publish.Extractor):
|
|||
force=True,
|
||||
type=type,
|
||||
exportSelected=True,
|
||||
preserveReferences=True,
|
||||
preserveReferences=False,
|
||||
constructionHistory=True,
|
||||
shader=True,
|
||||
constraints=True,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue