Here we're looking at the Script Editor to see what Maya is doing "under the hood". In the top part of the window (the History) you can see what Maya is doing "behind the scenes" whenever you're doing anything in Maya.
What you'll see in the Script Editor (by default)
if you create a cube in Maya
(with "Interactive Creation" turned off)
if you create a cube in Maya
(with "Interactive Creation" turned off)
Side note:
How to turn off/on "Interactive Creation"
(In case you're wondering)
Main Maya MenuBar > Create > Polygon Primitives > Interactive Creation
(it's a toggle for ON/OFF)
How to turn off/on "Interactive Creation"
(In case you're wondering)
Main Maya MenuBar > Create > Polygon Primitives > Interactive Creation
(it's a toggle for ON/OFF)
Here is that code's text for copy/paste use.
You can also copy and paste from your own Script Editor .
You can also copy and paste from your own Script Editor .
polyCube -w 1 -h 1 -d 1 -sx 1 -sy 1 -sz 1 -ax 0 1 0 -cuv 4 -ch 1;
We copy that code from the top part
(the "History" section)...
...and paste it into the bottom part
(the "input" section).

...right-click menuItem "Execute"

...highlighting the input code and pressing Ctrl + Enter

...highlighting the input code and pressing the play button "Execute" button in the Script Editor

Alright, that covers how to repeat a certain snippet of code that is directly copied from what you see Maya spitting out when you perform any given task.
(the "History" section)...
...and paste it into the bottom part
(the "input" section).
Now that there is a valid Mel Script in the input section, let's "execute" that code.
We can execute a piece of code a bunch of different ways. Here are just a few ways:
We can execute a piece of code a bunch of different ways. Here are just a few ways:
...drag the code to a shelf to make a shelf button.

...right-click menuItem "Execute"

...highlighting the input code and pressing Ctrl + Enter

...highlighting the input code and pressing the play button "Execute" button in the Script Editor

Alright, that covers how to repeat a certain snippet of code that is directly copied from what you see Maya spitting out when you perform any given task.
No comments:
Post a Comment