mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
Merge branch 'feature/OP-4859_cant-assign-shaders-to-the-ass-file' of https://github.com/tokejepsen/pype into feature/OP-4859_cant-assign-shaders-to-the-ass-file
This commit is contained in:
commit
d8fcc08e76
1 changed files with 6 additions and 4 deletions
|
|
@ -139,16 +139,18 @@ class ExtractArnoldSceneSource(publish.Extractor):
|
|||
parent, duplicate_transform
|
||||
)
|
||||
|
||||
duplicate_transform = cmds.parent(
|
||||
duplicate_transform, world=True
|
||||
)[0]
|
||||
|
||||
if cmds.listRelatives(duplicate_transform, parent=True):
|
||||
duplicate_transform = cmds.parent(
|
||||
duplicate_transform, world=True
|
||||
)[0]
|
||||
|
||||
basename = node.split("|")[-1].split(":")[-1]
|
||||
duplicate_transform = cmds.rename(
|
||||
duplicate_transform, basename
|
||||
)
|
||||
|
||||
# Discard the children.
|
||||
# Discard children nodes that are not shapes
|
||||
shapes = cmds.listRelatives(
|
||||
duplicate_transform, shapes=True, fullPath=True
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue