setObjectPickMask "Joint" true/false; For these types of things, you can turn on "echo all commands" inside of the script editor, and it will generally give you the command.