Just a quick note to whoever is the plug-in/script writer for the modo exporter in that if you are using sceneservice or layerservice commands though a scripting interpretor, you will find that it is much faster using the ScriptQuery Interfaces (see page 112 of the scripting and commands documentation). Slightly more code, but the time difference is well worth it.
i.e.
Code: Select all
svc = lx.Service("layerservice")
svc.select("verts", "all")
verts = svc.query("verts")
svc.select("vmaps", "all")
svc.select("vmap.name", "0")
for vert in verts:
svc.select("vert.vmapValue", vert)
vmapval = svc.query("vert.vmapValue")
Code: Select all
for vert in verts:
lx.eval('query layerservice vert.vmapValue ? %s' % vert)