I haven't looked at python syntax for a while, but I suspect you will need something like: mc.setAttr((obj + ".rotate"), 5, 5, 5)