import maya.cmds as cmds
# create polygon sphere
cmds.polySphere()
# create polygon sphere with radius of 30
cmds.polySphere(radius=10)
#help command
cmds.help("polySphere")
# query sphere radius
cmds.polySphere("pSphere2", query=True, radius=True)
#如果前面没有名称这个参数的话,那么询问的将是目前选中的目标
#edit radius shpere
cmds.polySphere("pSphere2", edit = True, radius = 5 )
import maya.cmds as cmds
cmds.ls(cameras = True)
cmds.ls(shapes = True)
cmds.ls(selection = True)
cmds.select(clear = True)
ctrl + enter execute all line
ctrl + alt + enter execute single line