def process(self, name, namespace, context, data):
from maya import cmds
cmds.loadPlugin("AbcImport.mll", quiet=True)
nodes = cmds.file(
self.fname,
namespace=namespace,
# Prevent identical alembic nodes
# from being shared.
sharedReferenceFile=False,
groupReference=True,
groupName=namespace + ":" + name,
reference=True,
returnNewNodes=True
)
self[:] = nodes
评论列表
文章目录