BasicOperations/ImportWithNamespace.py
22 d, filename = os.path.split(f)
24 return os.path.splitext(filename)[0]
29 NO_LOAD_UI_DIALOG =
False
32 OPTIONS_FOR_LOAD =
True
37 nativeFile = os.path.abspath( os.path.join( sys.ApplicationPath,
r"..\system\primitives\Cube.fbx"))
38 print "Source File Path", nativeFile
42 options.NamespaceList = getFileName(nativeFile)+
"_open"
45 app.FileOpen( nativeFile, NO_LOAD_UI_DIALOG, options )
49 options.NamespaceList = getFileName(nativeFile)+
"_append"
50 app.FileAppend( nativeFile, NO_LOAD_UI_DIALOG, options )
53 options.NamespaceList = getFileName(nativeFile)+
"_open"
54 options.SetAll(FBElementAction.kFBElementActionMerge,
True)
57 app.FileMerge( nativeFile, NO_LOAD_UI_DIALOG, options )