def importFiles(filePathList): """Import a list of files""" opt = FileReadOptions() opt.ImportMode = True for f in filePathList: print "Importing %s" % f scriptcontext.doc.ReadFile(f, opt)
def importFiles(filePathList): '''Import a list of files''' opt = FileReadOptions() opt.ImportMode = True for f in filePathList: print 'Importing %s' % f scriptcontext.doc.ReadFile(f, opt)
def importFiles(filePathList): '''Import a list of files''' opt = FileReadOptions() opt.ImportMode = True for f in filePathList: #print 'Importing %s' % f scriptcontext.doc.ReadFile(f, opt)
#options when importing all files grid = 16 modz = 5 #options to import different parts as a block import_in_blocks = True globx = 0 globy = 0 single_level = True level = 0 #options for reducing the mesh and cleaning the edges extrude_mesh = False #options for rhino file importing : leave as is opt = FileReadOptions() opt.ImportMode = True print folder print len(os.listdir(folder)) for filename in os.listdir(folder): if filename.endswith('.obj'): #import file based on the file name if import_in_blocks: coords = filename.split('.') coords = coords[0].split('_') #map_19_327273_154391_0.obj if globx == 0: print coords[3]