Skip to content

Instantly share code, notes, and snippets.

@lapaev
Created February 15, 2015 06:44
Show Gist options
  • Select an option

  • Save lapaev/8af4944d42ef646acb46 to your computer and use it in GitHub Desktop.

Select an option

Save lapaev/8af4944d42ef646acb46 to your computer and use it in GitHub Desktop.
Run through each CV on selected curves
def clsit(inputer):
cvc = cmds.getAttr(inputer+'.spans') + cmds.getAttr(inputer+'.degree')
for z in range(0, cvc):
z = str(z)
cmds.select(inputer + '.cv[' + z + ']')
cursel = cmds.ls(sl=True)
for x in cursel:
clsit(x)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment