mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
cosmetics
This commit is contained in:
parent
ef1836c18b
commit
7c3fb0d0c5
1 changed files with 3 additions and 2 deletions
|
|
@ -1,6 +1,7 @@
|
|||
from maya import cmds
|
||||
|
||||
from avalon import api
|
||||
from avalon import maya
|
||||
|
||||
|
||||
class ModelLoader(api.Loader):
|
||||
|
|
@ -14,7 +15,7 @@ class ModelLoader(api.Loader):
|
|||
representations = ["ma"]
|
||||
|
||||
def process(self, name, namespace, context):
|
||||
from avalon import maya
|
||||
|
||||
with maya.maintained_selection():
|
||||
nodes = cmds.file(
|
||||
self.fname,
|
||||
|
|
@ -22,7 +23,7 @@ class ModelLoader(api.Loader):
|
|||
reference=True,
|
||||
returnNewNodes=True,
|
||||
groupReference=True,
|
||||
groupName=namespace + ":" + name
|
||||
groupName="{}:{}".format(namespace, name)
|
||||
)
|
||||
|
||||
# Assign default shader to meshes
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue