mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
use cmds.listRelatives instead of mel at multiverse usd loader
This commit is contained in:
parent
9c9ea78233
commit
73e691f379
1 changed files with 2 additions and 2 deletions
|
|
@ -1,6 +1,5 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
import maya.cmds as cmds
|
||||
import maya.mel as mel
|
||||
|
||||
from openpype.pipeline import (
|
||||
load,
|
||||
|
|
@ -44,7 +43,8 @@ class MultiverseUsdLoader(load.LoaderPlugin):
|
|||
with namespaced(namespace, new=False):
|
||||
import multiverse
|
||||
shape = multiverse.CreateUsdCompound(self.fname)
|
||||
transform = mel.eval('firstParentOf "{}"'.format(shape))
|
||||
transform = cmds.listRelatives(
|
||||
shape, parent=True, fullPath=True)[0]
|
||||
|
||||
nodes = [transform, shape]
|
||||
self[:] = nodes
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue