From 12bea639ebd5a0a9dbaed87bad255faeed83ed89 Mon Sep 17 00:00:00 2001 From: Ondrej Samohel Date: Wed, 1 Apr 2020 17:25:43 +0200 Subject: [PATCH] preserve mb file type during publish --- pype/plugins/maya/publish/collect_scene.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pype/plugins/maya/publish/collect_scene.py b/pype/plugins/maya/publish/collect_scene.py index 089019f2d3d..3f5760fd7b9 100644 --- a/pype/plugins/maya/publish/collect_scene.py +++ b/pype/plugins/maya/publish/collect_scene.py @@ -1,5 +1,3 @@ -from maya import cmds - import pyblish.api import avalon.api import os @@ -42,8 +40,8 @@ def process(self, context): }) data['representations'] = [{ - 'name': 'ma', - 'ext': 'ma', + 'name': ext.lstrip("."), + 'ext': ext.lstrip("."), 'files': file, "stagingDir": folder, }]