Skip to content

Instantly share code, notes, and snippets.

@marvolo3d
Last active March 25, 2021 03:59
Show Gist options
  • Save marvolo3d/bdd2c02758945583af9daf0125ce8618 to your computer and use it in GitHub Desktop.
Save marvolo3d/bdd2c02758945583af9daf0125ce8618 to your computer and use it in GitHub Desktop.
import maya.cmds as cmds
sel = cmds.ls(sl=1, l=True)
for x in sel:
cmds.select(x, r=True)
try:
cmds.addAttr( shortName='radius', longName='radius', defaultValue=0)
except:
pass
cmds.select(sel, r=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment