View Single Post
# 2 26-07-2012 , 02:50 PM
Registered User
Join Date: Jan 2012
Posts: 43
Ok I couldn't wait so I teached myself some python, that was super simple actually!


def add2Set():
selection = cmds.ls(sl=True)
myObject =selection[0]
cmds.sets( (myObject), add='SET01' )

but I couldn't get it to work inside a marking menu because it's python..
I tryed the python import command but then I get this error : # Error: NameError: global name 'cmds' is not defined #

What the eff?? script is working fine from a shelf...

Any ideas??