Practical Maya Programming with Python by Robert Galanakis

By Robert Galanakis

Create and customise UIs utilizing usual instruments and libraries
Understand how Maya can leverage complex Python features
Make your instruments, and Maya itself, totally automatable
In Detail

Autodesk Maya is a 3D special effects software program. It deals an unlimited and versatile set of gains using Python. it isn't tricky to start utilizing Python in Autodesk Maya, however it will be tricky to head from writing procedural, MEL-inspired instruments to construction the strong but basic platforms that Python promises.

Practical Maya Programming with Python might help you grasp either Python and Maya. With thorough causes, illustrative examples, and entire pattern initiatives, you are going to easy methods to use Python to appeal Maya into obeying your each command. sensible Maya Programming with Python will train you the way PyMEL works in addition to how one can take care of blunders and write composable code in Python.

What you'll study from this book

Understand the structure of Python items, Maya nodes, and PyMEL
Write composable code that's modular and re-usable
Make Maya "Pythonic" by utilizing decorators and context managers
Learn approximately various Maya UI concepts and libraries
Use PySide and PyQt to construct Maya consumer interfaces
Turn Maya right into a server that may be managed remotely
Understand how one can use Python with Maya's API
Conquer customized nodes utilizing Python's dynamic kind creation
Approach

"Practical Maya Programming with Python" is a realistic educational jam-packed with lots of examples and pattern initiatives which publications you thru construction reusable, self reliant modules and dealing with unforeseen errors.

Who this e-book is written for

If you're a developer trying to construct a robust process utilizing Python and Maya's functions, then this booklet is for you. functional Maya Programming with Python is ideal for intermediate clients with simple event in Python and Maya who are looking to higher their wisdom and talents.

Show description

Read Online or Download Practical Maya Programming with Python PDF

Best 3d graphics books

3D Graphics with XNA Game Studio 4.0

This booklet is designed as a step by step instructional that may be learn via from commencing to finish, with every one bankruptcy construction at the final. every one part, although, is additionally used as a reference for imposing a variety of digicam types, lighting tricks, and so forth. The chapters are choked with illustrations, screenshots, and instance code, and every bankruptcy relies round the production of 1 or extra instance initiatives.

Maya Secrets of the Pros

That includes thoroughly unique fabric from a brand new workforce of Maya know-it-alls, this moment variation of an award-winning booklet is certain to notify and encourage even the main professional Maya consumer. during this certain Maya Press identify, a cadre of pros led via acclaimed Maya execs, display the dear secrets and techniques they have discovered utilizing Maya on high-profile CG initiatives resembling The Matrix, Shrek 2, and X-Men.

Maya Studio Projects: Dynamics

The single hands-on publication dedicated to getting to know Maya's dynamics instruments for water, wind, and fireIn the realm of animation, the facility to create reasonable water, wind, and hearth results is essential. Autodesk Maya software program contains robust dynamics instruments which have been used to layout breathtaking results for video clips, video games, advertisements, and brief motion pictures.

Autodesk Inventor 2012 and Inventor LT 2012 Essentials (Autodesk Official Training Guide: Essential)

Crucial advisor to studying Autodesk Inventor and Inventor LTThe new necessities books from Sybex are appealing, task-based, full-color Autodesk authentic education publications that assist you wake up to hurry on Autodesk issues fast and simply. Inventor necessities completely covers middle positive aspects and features of Autodesk's industry-leading 3D mechanical layout software program, educating you what you want to turn into speedy effective with the software program.

Extra info for Practical Maya Programming with Python

Sample text

Generally, the camera follows the object at some distance and turns with it. This is the type of camera used, for example, in most third person situations—racing games, third person shooters, flight simulators, and so on. The chase distance and view direction are generally determined using an offset for the camera position and an offset for the target position from the object's position. The view matrix is then calculated as usual based on those values. CreateLookAt(Position, Target, up); } } [ 36 ] Chapter 1 Example—spaceship simulator Let's use the concepts and classes learned and created so far to create a simple game in which the player flies our spaceship around using the keyboard.

Draw(); } } Creating a simple effect We will create our first effect now, and assign it to our models so that we can see the result. To begin, right-click on the content project, choose Add New Item, and select Effect File. fx: [ 48 ] Chapter 2 The code for the new file is as follows. 5, 1); } technique Technique1 { pass Pass1 { VertexShader = compile vs_1_1 VertexShaderFunction(); PixelShader = compile ps_2_0 PixelShaderFunction(); } } To assign this effect to the models in our scene, we need to first load it in the game's LoadContent() function, then use the SetModelEffect() function to assign the effect to each model.

The chase distance and view direction are generally determined using an offset for the camera position and an offset for the target position from the object's position. The view matrix is then calculated as usual based on those values. CreateLookAt(Position, Target, up); } } [ 36 ] Chapter 1 Example—spaceship simulator Let's use the concepts and classes learned and created so far to create a simple game in which the player flies our spaceship around using the keyboard. You'll notice that the example uses the ChaseCamera to follow the spaceship and uses two models to represent the ground and spaceship.

Download PDF sample

Rated 4.56 of 5 – based on 42 votes