Typically when you do anything inside of Maya, the MEL script that is executed to make it happen will be printed out inside the Script Editor. This is not always the case with all the commands however. Some of the more advanced commands are not printed out by default inside the Script Editor. They are still be executed and we can still view them but in order to do so we will need to activate Echo All Commands from the history dropdown menu. With Echo All Commands activated we will see every single script that Maya executes within the Script Editor.
Having Echo All Commands activated in the Script Editor can make finding exactly what you are looking for a little difficult to discern. Generally it’s a good idea to make a mental note of where you are in the Script Editor just prior to executing the exact command that you are looking to find the script for. Once you have executed the action you can then sort through the printed out code to find the exact parts of the script that you need. In our case we will be looking for the commands that are used to create a camera and then set the camera to correct position in 3d space. While all that sounds very complex, it’s actually rather simple. Once you’ve executed a command, typically the first few statements that are printed out are what you are looking for and you can always make use of the Maya documentation to confirm it.
Disclaimer:
The above video was developed by Brain Poof. The views and opinions being expressed by any narrator of any multimedia provided on this channel are the sole product of Brain Poof.