Selecting a group in MAYA with Python

Discussion created by kitsande on Feb 11, 2014

Im new to scripting, but am building 2 sets of stairs. One of my stairs is in a group called "myStairsGrp4" but I cant seem to be able to figure out how to select that group with Python script so that I can move it.

The MEL script says:

select -r myStairsGrp4 ;
move -rpr -y 1 ;
move -rpr -z -18 ;
select -cl  ;

Can anyone help me figure out how to change "select -r myStairsGrp4 ;" into python script?