Skip to content

Instantly share code, notes, and snippets.

@nicelifeBS
Last active January 4, 2016 15:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nicelifeBS/8642162 to your computer and use it in GitHub Desktop.
Save nicelifeBS/8642162 to your computer and use it in GitHub Desktop.
modo script - Query edge selection sets and give out their name
#python
## lx layerservice ##
layerService = lx.Service("layerservice")
layerService.select("layers", "main") # select active mesh layer
nVmaps = layerService.query("vmap.N") # get vmap number
# walk through the vmaps and print the names of it if the type is edgepick
for vmap in xrange(nVmaps):
layerService.select("vmap.index", str(vmap))
vmapType = layerService.query("vmap.type")
vmapName = layerService.query("vmap.name")
if vmapType == "edgepick":
lx.out("Edge Selection Set: ", vmapName)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment