3D Modelling & Animation

Slides:



Advertisements
Similar presentations
C++ Language Fundamentals. 2 Contents 1. Introduction to C++ 2. Basic syntax rules 3. Declaring and using variables.
Advertisements

JavaScript FaaDoOEngineers.com FaaDoOEngineers.com.
Intro to Python Welcome to the Wonderful world of GIS programing!
Computer and Programming
Objectives Understand the software development lifecycle Perform calculations Use decision structures Perform data validation Use logical operators Use.
Tutorial 12: Enhancing Excel with Visual Basic for Applications
Your First C++ Program Aug 27, /27/08 CS 150 Introduction to Computer Science I C++  Based on the C programming language  One of today’s most.
Software Development B.Sc. (Hons) Multimedia ComputingMultimedia Authoring.
MIRC Matthew Forest. Introduction mIRC itself is a program designed for text based messaging via the IRC (internet relay chat) protocol. (Link:
CVEV 118/698 Visual Basic Lecture 1 Prof. Mounir Mabsout Expert 1: Elsa Sulukdjian Expert 2: Walid El Asmar.
About the Presentations The presentations cover the objectives found in the opening of each chapter. All chapter objectives are listed in the beginning.
Computer Science A 1: 3/2. Course plan Introduction to programming Basic concepts of typical programming languages. Tools: compiler, editor, integrated.
Chapter 7 Managing Data Sources. ASP.NET 2.0, Third Edition2.
1 CS428 Web Engineering Lecture 18 Introduction (PHP - I)
Module 2: Using Transact-SQL Querying Tools. Overview SQL Query Analyzer Using the Object Browser Tool in SQL Query Analyzer Using Templates in SQL Query.
COMP An Introduction to Computer Programming : University of the West Indies COMP6015 An Introduction to Computer Programming Lecture 03.
1 ENG236: ENG236: C++ Programming Environment (2) Rocky K. C. Chang THE HONG KONG POLYTECHNIC UNIVERSITY.
1 Chapter One A First Program Using C#. 2 Objectives Learn about programming tasks Learn object-oriented programming concepts Learn about the C# programming.
A First Program Using C#
1 Programming Concepts Module Code : CMV6107 Class Contact Hours: 45 hours (Lecture 15 hours) (Laboratory/Tutorial 30 hours) Module Value: 1 Textbook:
Java Beans.
PHP TUTORIAL. HISTORY OF PHP  PHP as it's known today is actually the successor to a product named PHP/FI.  Created in 1994 by Rasmus Lerdorf, the very.
Munster Programming Training
CNIT 133 Interactive Web Pags – JavaScript and AJAX JavaScript Environment.
Chapter 1: A First Program Using C#. Programming Computer program – A set of instructions that tells a computer what to do – Also called software Software.
Hans-Peter Plag October 16, 2014 Session 3 Programming Languages Data Types and Variables Expressions and Operators Flow Control.
2. Introduction to the Visual Studio.NET IDE. Chapter Outline Overview of the Visual Studio.NET IDE Overview of the Visual Studio.NET IDE Menu Bar and.
Copyright © 2008 Pearson Prentice Hall. All rights reserved. 11 Committed to Shaping the Next Generation of IT Experts. Chapter 10 Customizing a Database.
Chapter 11 An Introduction to Visual Basic 2008 Why Windows and Why Visual Basic How You Develop a Visual Basic Application The Different Versions of Visual.
Computational Methods of Scientific Programming Lecturers Thomas A Herring, Room A, Chris Hill, Room ,
Engineering Computing I Chapter 1 – Part A A Tutorial Introduction.
Introduction to Engineering MATLAB – 6 Script Files - 1 Agenda Script files.
Tutorial 10 Programming with JavaScript
POS 406 Java Technology And Beginning Java Code
Computer Science 101 Introduction to Programming.
FLUKA GUI Status FLUKA Meeting CERN, 10/7/2006.
Mel & Hot Keys Review. What’s MEL?  Maya Embedded Language  Most of Maya's interface is built using MEL commands and scripts.
Guide to Programming with Python Chapter One Getting Started: The Game Over Program.
1 Chapter Eleven Handling Events. 2 Objectives Learn about delegates How to create composed delegates How to handle events How to use the built-in EventHandler.
introducing the Java Data Processing Framework Paolo Ciccarese, PhD On behalf of the JDPF Team Pavia, December 11, 2007.
I Power Higher Computing Software Development Development Languages and Environments.
DEV303 ASP.NET: Leveraging Visual Studio.NET For Web Projects Tony Goodhew Product Manager Microsoft Corp.
CITA 342 Section 2 Visual Programming. Allows the use of visual expressions (such as graphics, drawings, or animation) in the process of programming.
JAVA Programming “When you are willing to make sacrifices for a great cause, you will never be alone.” Instructor: รัฐภูมิ เถื่อนถนอม
OCR GCSE Computing © Hodder Education 2013 Slide 1 OCR GCSE Computing Python programming 1: Introduction.
Visual Basic for Application - Microsoft Access 2003 Programming applications using Objects.
Copyright 2003 Scott/Jones Publishing Standard Version of Starting Out with C++, 4th Edition Chapter 1 Introduction to Computers and Programming.
JSP BASICS AND ARCHITECTURE. Goals of JSP Simplify Creation of dynamic pages. Separate Dynamic and Static content.
XP New Perspectives on XML, 2 nd Edition Tutorial 7 1 TUTORIAL 7 CREATING A COMPUTATIONAL STYLESHEET.
Introduction Mehdi Einali Advanced Programming in Java 1.
©2016 Pearson Education, Inc. Upper Saddle River, NJ. All Rights Reserved. CSC 110 – INTRO TO COMPUTING - PROGRAMMING Overview of Programming.
PROGRAMMING IN R Introduction to R. In this session I will: Introduce you to the R program and windows Show how to install R Write basic programs in R.
Department of Electronic & Electrical Engineering Introduction to C - The Development cycle. Why C? The development cycle. Using Visual Studio ? A simple.
Announcements Assignment 1 due Wednesday at 11:59PM Quiz 1 on Thursday 1.
UFCFY5-30-1Multimedia Studio Scripting for Interactive Media Using Interface Fields to Receive and Display Data to the User.
Chapter 1: Introduction to Computers and Programming.
Some of the utilities associated with the development of programs. These program development tools allow users to write and construct programs that the.
Presented By P.SRIVIDYA 085D1A0552 Programming Language.
Introduction to Algorithm. What is Algorithm? an algorithm is any well-defined computational procedure that takes some value, or set of values, as input.
PHP Basics and Syntax Lesson 3 ITBS2203 E-Commerce for IT.
C# Diline Giriş.
CST 1101 Problem Solving Using Computers
Basic 1960s It was designed to emphasize ease of use. Became widespread on microcomputers It is relatively simple. Will make it easier for people with.
Productivity Tools Extensions to NetBeans IDE that make life easier
Lecturer: Mukhtar Mohamed Ali “Hakaale”
MEL Interface with Maya.
Creating Your First C Program Using Visual Studio 2010
Creating Your First C Program Using Visual Studio 2010
Games Development 2 Tools Programming
Learning Python 5th Edition
Presentation transcript:

3D Modelling & Animation Picture... 3D Modelling & Animation Programming Maya Picture...

Agenda MEL Expressions and Scripting Referencing MEL Scripts Python Scripting The Maya C++ API

MEL Expressions Expression Editor Create MEL Expressions using the expression editor Windows - Animation Editors - Expression Editor Set animation times on objects transformations/ rotations/ scaling Expression Editor

Maya Embedded Language Syntax very similar to the C language syntax Supports usual types, conditional statements and control structures Variables declared before use prefixed with the $ symbol string $message = “Hello World”; print ($message + “ from Maya”) Supports arrays string $names[] // an array of names Does not support structured types or arrays of arrays (tables) string $name[] string $meshPosition[] $meshPostion[2] = $name not supported

Maya Embedded Language Has many functions to manipulate strings which can overcome limitations having no support for structured types or tables - see Maya MEL API from Help Suppotrs procedures to encapsulate functionality for resuse global proc makeSphere() { sphere; move 0 0 1; };

Maya Embedded Language Procedures can take arguments and return values global proc string[] generatePopulation(int $popSize, int $length){ /* generates and returns an initial population of binary string values of length $length and population size $popSize */

Maya Embedded Language Maya has a script editor for entering MEL statements Very basic scripting support - Maya 8.5 introduced script line numbering! No syntax highlighting or auto indent etc. MEL Script Editor

Maya Embedded Language output 2. Evaluate Expression (Press Enter on Numeric Keypad) 1. Define Expression

Access Script editor here or here MEL output result here and here Enter MEL commands here

Cutter - MEL (Java) Based Editor Java based editor called Cutter Provides enhanced editing environment syntax highlighting indent etc. Easier access to MEL command reference from Maya Also support for Renderman (Pixar) see www.fundza.com

MEL Editor (Cutter) GUI see www.fundza.com

see www.fundza.com

Accessing MEL Scripts Maya must access procedures via the usersetup.mel file found here: C:\Documents and Settings\username\My Documents\maya\8.5\scripts\userSetup.mel

procedures listed in userSetup.mel

Use MEL to Customize the Maya GUI and Create new Interface Components

Python Scripting Python open-source object oriented language Interfaces with development frameworks such as .NET Enter Python expressions using the text interface choose the Python tab

Maya C++ API Maya supports the development of plug-ins written in C++ Creates dynamic link libraries for extending Maya via additional plug-ins for various utilities and tools May also has a MIDI API Versions of Maya come with a Visual Studio Project Wizard that can be installed in Visual Studio to facilitate the creation of Maya dynamic link library plug-ins (.mll) e.g the 3D Studio mesh import plug-in is 3ds.mll (Maya Link Library) (see the readme in the zip file) Maya 8.5 has a project wizard for Visual Studio 8 (Visual Studio 2005) Reminder:These products are free to CEMS students via the Microsoft Software Alliance

Further Reading David Gould has written two books on MAYA programming see www.davidgould.com Some excellent MEL tutorials and other resources at www.robthebloke.org