Let's create an object in Maya, a sphere, and looking at what happens in the script editor.
Create a spherewhat you should see in the script editor is:
Create / Nurbs Primitives / Sphere
Open up the script editor
Windows / General Editors / Script Editor
sphere -p 0 0 0 -ax 0 1 0 -ssw 0 -esw 360 -r 1 -d 3 -ut 0 -tol 0.01 -s 8 -nsp 4 -ch 1;We see two commands. The first command creates a nurbsSphere with some options attached and the second command sets our current tool to the move tool. Let's take the fundamental element of this code and type it into the command line
In the command line type sphere;You should see a nurbs sphere appear on your screen. Open your script editor again.
hit ENTER (on the numeric keypad)
sphere;This should illustrate that Maya's interface is using the same commands you will be using to create your scripts with. To familiarize yourself with how Maya is using it's commands, keep the script editor open while you work and notice what is happening every time you perform an action. <Top>
// Result: nurbsSphere1 makeNurbSphere1 //