Last active
January 4, 2016 15:39
-
-
Save nicelifeBS/8642162 to your computer and use it in GitHub Desktop.
modo script - Query edge selection sets and give out their name
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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