Mel & Hot Keys Review. What’s MEL?  Maya Embedded Language  Most of Maya's interface is built using MEL commands and scripts.

Slides:



Advertisements
Similar presentations
Instructors: Connie Hutchison & Christopher McCoy
Advertisements

Instructors: Connie Hutchison & Christopher McCoy
Introduction to Computers Section 6A. home The Operating System (OS) The operating system (OS) is software that controls the interaction between hardware.
Windows Test Review.
Windows Basics An Introduction to the Windows Operating System.
Introduction to Visual Basic.NET Uploaded By: M.Sheraz anjum.
Click left mouse button to proceed. Windows Tutorial CST-133 Lab W © Delta College CST Faculty This tutorial was created by R. Hoag in August.
© Paradigm Publishing, Inc Excel 2013 Level 2 Unit 2Managing and Integrating Data and the Excel Environment Chapter 7Automating Repetitive Tasks.
Tutorial 12: Enhancing Excel with Visual Basic for Applications
EXCEL Spreadsheet Basics
Scripts and Flow Control. Scripts So far we have been entering commands directly into the command line But there is a better way Script files (and functions)
3D Modelling & Animation
Customizing Word Microsoft Office Word 2007 Illustrated Complete.
A Guide to SQL, Seventh Edition. Objectives Embed SQL commands in PL/SQL programs Retrieve single rows using embedded SQL Update a table using embedded.
Basic Editing Lesson 2- Part 2. Navigating and Searching Through a Document Find command options, the mouse, scroll bars, and various keystroke and keyboard.
Keyboard shortcuts in the 2007 Office system Introducing the Ribbon Based on extensive research into how people use Microsoft Office and how they wish.
© Siemens Product Lifecycle Management Software Inc. All rights reserved Siemens PLM Software Solid Edge ST4 Training Rendering assemblies.
PowerPoint Lesson 2 Notes Working With Slides. Creating a New Presentation From a Theme 1.When preparing for a presentation, the best place to start is.
File Management and Organisation © Copyright William Rowan 2007.
COMPREHENSIVE Excel Tutorial 8 Developing an Excel Application.
Word Lesson 16 Working with Macros Microsoft Office 2010 Advanced Cable / Morrison 1.
2. Introduction to the Visual Studio.NET IDE 2. Introduction to the Visual Studio.NET IDE Ch2 – Deitel’s Book.
© 2009 Autodesk Autodesk ® Ecotect TM Analysis: The Desktop Component Interface Dr. Andrew Marsh Principal Software Engineer, AEC-Simulation.
Microsoft Word Basics. Opening Screen Parts Title Bar Displays the name of the program and the current file Contains the Quick Access Toolbar Contains.
Key Applications Module Lesson 19 — PowerPoint Essentials
© 2008 The McGraw-Hill Companies, Inc. All rights reserved. WORD 2007 M I C R O S O F T ® THE PROFESSIONAL APPROACH S E R I E S Lesson 22 Macros.
Objectives Understand what MATLAB is and why it is widely used in engineering and science Start the MATLAB program and solve simple problems in the command.
Creating a Web Site to Gather Data and Conduct Research.
1 ADVANCED MICROSOFT WORD Lesson 16 – Customizing Features Microsoft Office 2003: Advanced.
Introduction to Maya. Maya’s Layout User Interface Elements In Maya, you can tear off menus to create separate floating boxes that you can place anywhere.
Chapter Three The UNIX Editors. 2 Lesson A The vi Editor.
Tutorial 111 The Visual Studio.NET Environment The major differences between Visual Basic 6.0 and Visual Basic.NET are the latter’s support for true object-oriented.
Introduction to Engineering MATLAB – 6 Script Files - 1 Agenda Script files.
Basic Computer and Word Functions, part 1 Read the information and use to answer the questions in the Basic Computer and Word Functions Study Guide.
Productivity Programs Common Features and Commands.
Just as there are many human languages, there are many computer programming languages that can be used to develop software. Some are named after people,
{ Kelly Selby. { Word 2010 The Ribbon (new in 2007)
Distributed Multimedia Programming Week - 1. Document Window  The Document Window is divided in to six main components Timeline – The Timeline is where.
Editors And Debugging Systems Other System Software Text Editors Interactive Debugging Systems UNIT 5 S.Sharmili Priyadarsini.
Basic Computer and Word Functions, part 1 Read the information and use to answer the questions in the Basic Computer and Word Functions Study Guide.
Chapter 3 MATLAB Fundamentals Introduction to MATLAB Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Chapter 1 – Matlab Overview EGR1302. Desktop Command window Current Directory window Command History window Tabs to toggle between Current Directory &
Microsoft PowerPoint 2013 Lesson 1 Created by Felicia Hudson, Riverside High School--Durham Public Schools.
Chapter Three The UNIX Editors.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 4 Working with Variables, Constants, Data Types, and Expressions.
Microsoft Office 2003: Advanced 1 ADVANCED MICROSOFT EXCEL Lesson 17 – Working with Multiple Worksheets and Workbooks.
Lesson: 2 Common Features and Commands After completing this lesson, you will be able to: Identify the main components of the user interface. Identify.
1 1.Enter User Name 2.Enter Password 3.Select Language. Default is English 4.Click Login
1 Introduction to Microsoft Windows Lecture Outline.
THE C PROGRAMMING ENVIRONMENT. Four parts of C environment  Main menu  Editor status line and edit window  Compiler message window  “Hot Keys” quick.
Creating bibliographic records from templates Click on New icon or Record>New>Bibliographic When Select Bibliographic template dialog box opens double.
MS Excel Lesson 1. Starting Excel Excel opens to a list of templates and in most cases you choose Blank workbook or open a previous file. Think of a workbook.
SQL Query Analyzer. Graphical tool that allows you to:  Create queries and other SQL scripts and execute them against SQL Server databases. (Query window)
Open Office Writer Introduction AOSS _ Course material AOSS Master training workshop Singapore 2007.
Perl Subroutines User Input Perl on linux Forks and Pipes.
1 Lesson 9 Windows Management Computer Literacy BASICS: A Comprehensive Guide to IC 3, 3 rd Edition Morrison / Wells.
MS WORD INFORMATION TECHNOLOGY MANAGEMENT SERVICE Training & Research Division.
C Copyright © 2009, Oracle. All rights reserved. Using SQL Developer.
Menu & Clipboard Menu Cut / Copy / Paste. Menus Created in the Menu Editor Can contain menu titles, menu items, separator bars, submenu titles, and submenu.
Fundamentals of Windows Mouse n 4 Basic Operations: –Pointing –Clicking –Double Clicking –Dragging.
Excel Tutorial 8 Developing an Excel Application
A Guide to SQL, Seventh Edition
Customizing the Quick Access Toolbar in Microsoft Office
Using a set-up file to read ASCII data into SPSS
4.2 Microsoft Word.
Microsoft Office Ribbon
Productivity Programs Common Features and Commands
Microsoft Office Ribbon
Linux Operations and Administration
Welcome To Microsoft Word 2016
Presentation transcript:

Mel & Hot Keys Review

What’s MEL?  Maya Embedded Language  Most of Maya's interface is built using MEL commands and scripts.

Why Use MEL?  Bypass Maya's user interface, quickly create shortcuts, and access advanced features.  Enter exact values for attributes, bypassing any restrictions to precision imposed by the interface.  Customize the interface for specific scenes, changing default settings to settings you prefer for a particular project.  Create MEL procedures and scripts that carry out custom modeling, animation, dynamics, and rendering tasks.

MEL in the Expression Editor  translateY = ball.translateZ; Or  ty = ball.tz;  ball.tx = 5 * sin (time);  tire.rz = - (tire.tx * (360.0 / (2 * )));

MEL Scripts  All MEL commands must terminate with a semicolon  A MEL script file (*.mel) is a file that contains MEL commands, MEL procedures, or both.  A MEL script is used to execute a sequence of commands.  When you execute a MEL script, it does not become part of the scene; you must execute the script each time you want to repeat the action.

Where are the scripts?  By default, Maya looks for your MEL scripts in your scripts directory.  By default, this location is  maya\6.0\scripts

Where is the Script Editor?  Open by selecting Window > General Editors > Script Editor  Click (the Script Editor icon) at the bottom right of the Maya window

Edit Commands in the Script Editor Win CmdMac CmdDescription Ctrl+cApple+c Copy Ctrl+xApple+x Cut Ctrl+vApple+v Paste Ctrl+aApple+a Select all the text in the edit box

Opening a script  Opening a script doesn't execute it. It simply displays the script in the input section of the Script Editor.  To execute some or all of a script displayed in the input section of the Script Editor, highlight it with your mouse press your keyboard's numeric Enter key.

Sourcing a script  Sourcing a MEL script file executes all of the MEL commands and declares all global procedures that are contained within the script file.  If you modify a procedure in a script file, Maya will not register the changes to that procedure until you source its script file. This is because Maya keeps executed procedures in memory.

Executing a script  Enter the script name in the command input (bottom portion) of the Script Editor and do one of the following: press Ctrl + Enter press the Enter key on the numeric keypad select Edit > Execute from the Script Editor  If no part of the MEL script definition fails, then the definition is moved from the bottom portion to the top portion of the Script Editor.

MEL Scripts  All MEL commands must terminate with a semicolon  A MEL script file (*.mel) is a file that contains MEL commands, MEL procedures, or both.  A MEL script is used to execute a sequence of commands.  When you execute a MEL script, it does not become part of the scene; you must execute the script each time you want to repeat the action.

time -A Predefined Variable in Maya NOTE: the following table assumes a frame rate of 24 fps. FrameTime (seconds)

Sourcing a script  When you source a global MEL script, global procedures are declared.  If you declare a local procedure by entering it in the Script Editor or Command Line, the procedure is declared globally and you can execute it at any time.

Hotkeys  If you use a menu selection frequently, you may want to assign it to a hotkey.  You assign hotkeys in the Hotkey Editor (Window > Settings/Preferences > Hotkeys) window.  You can assign hotkeys to your own MEL scripts or to commands that accompany plug-in software.

How Hotkeys Are Saved  Maya saves your custom hotkey preferences so that they do not interfere with the default Maya hotkey settings.  Your preferences will not be overwritten when you upgrade to the next Maya version.  The file names containing hotkey preferences are userHotkeys.mel and userNamedCommands.mel under user prefs directory: