Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

Maya python import fbx - importer changes between "Fbx" and "FBX".

Maya python import fbx - importer changes between "Fbx" and "FBX".

Anonymous
Not applicable
3,305 Views
0 Replies
Message 1 of 1

Maya python import fbx - importer changes between "Fbx" and "FBX".

Anonymous
Not applicable

I'm working on a python script that imports fbx meshes into maya. I'm running into problems where the fbx importer for some reason changes the importer from "Fbx" to "FBX". With the "FBX" version my import script works as intended but I get a window-popup on import that I haven't figured out how to suppress. With the "Fbx" version some parameters in my import script are not taken into consideration. For instance "groupReference=True" and "groupName="myfbx"" does not seem to work. 

My first question is: what causes maya to change the exporter from "Fbx" to "FBX"?(see attached image)

The next questions are about when I run this script in "Fbx" mode versus "FBX" mode:

import maya.cmds as cmds
import maya.mel as mel

def run_script():
	filepath = cmds.file(q=True, sn=True)
	path = cmds.fileDialog2 (startingDirectory =filepath, fileMode=4,dialogStyle=1,fileFilter="All Files (*.*)")
	for p in path:
		cmds.file(p, i=True, type='Fbx', ignoreVersion=True, groupReference=True, groupName="myfbx")


When I run this script in "FBX" mode it works as intended but I get an import dialog window (see attached image). Is there a way to suppress this window? It is hindering me from importing more than one mesh.

When I run this script in "Fbx" mode it does not group my imported mesh under the group "myfbx" if a mesh with identical name is somewhere in the scene. Why does it ignore the group command on import?

I'm running maya 2016
Thanks!

0 Likes
3,306 Views
0 Replies
Replies (0)