#!/usr/bin/python import itaps from itaps import iMesh, iBase # create empty mesh mesh = iMesh.Mesh() # create a single vertex to tag vertex = (0, 0, 0) vtx = mesh.createVtx(vertex) # set number of tags num_tags = 39 # create tags for tag in xrange(num_tags): tagname = 'TAG_' + str(tag) testTag = mesh.createTag(tagname, 1, 'd') testTag.setData(vtx, 0.0) # print the tags print mesh.getAllTags(vtx) # save the mesh to h5m file mesh.save('tagtest.h5m') # end tagcreate.py