Maya Programming with Python Cookbook
eBook - ePub

Maya Programming with Python Cookbook

Adrian Herbez

Condividi libro
  1. 266 pagine
  2. English
  3. ePUB (disponibile sull'app)
  4. Disponibile su iOS e Android
eBook - ePub

Maya Programming with Python Cookbook

Adrian Herbez

Dettagli del libro
Anteprima del libro
Indice dei contenuti
Citazioni

Informazioni sul libro

Master complex workflows and conquer the world with Python and Maya

About This Book

  • Improve your modelling skills and reduce your scripting problems using Python in Maya
  • Learn to communicate with web applications using Python for easier team development
  • A quick and practical answer to every problem you can have whilst scripting in Maya with Python

Who This Book Is For

This book is for Python developers who have just started scripting with Maya.

What You Will Learn

  • Find out how to use Python scripting to automate tedious tasks
  • Create functional user interfaces to make scripts easy to share with others
  • Add new functionality to Maya via the power of scripting
  • Import and export arbitrary data into and out of Maya
  • Improve your workflow, and that of your team
  • Create custom create custom controls to make rigs that are easy to work with
  • Implement a system to render 3D assets for isometric games
  • Use script jobs to trigger actions automatically in response to user interaction
  • Open a command port to allow other applications to communicate with Maya

In Detail

Maya is a 3D graphics and animation software, used to develop interactive 3D applications and games with stupendous visual effects. The Maya Programming with Python Cookbook is all about creating fast, powerful automation systems with minimum coding using Maya Python. With the help of insightful and essential recipes, this book will help you improve your modelling skills. Expand your development options and overcome scripting problems encountered whilst developing code in Maya. Right from the beginning, get solutions to complex development concerns faced when implementing as parts of build.

Style and approach

This book is comprised of a set of practical recipes, grouped under specific topics, which can be referred to independently or in sequence. These recipes provide quick solutions to common problems, and cover most of the real-world scenarios that developers are likely to face when working with Maya.

Domande frequenti

Come faccio ad annullare l'abbonamento?
È semplicissimo: basta accedere alla sezione Account nelle Impostazioni e cliccare su "Annulla abbonamento". Dopo la cancellazione, l'abbonamento rimarrà attivo per il periodo rimanente già pagato. Per maggiori informazioni, clicca qui
È possibile scaricare libri? Se sì, come?
Al momento è possibile scaricare tramite l'app tutti i nostri libri ePub mobile-friendly. Anche la maggior parte dei nostri PDF è scaricabile e stiamo lavorando per rendere disponibile quanto prima il download di tutti gli altri file. Per maggiori informazioni, clicca qui
Che differenza c'è tra i piani?
Entrambi i piani ti danno accesso illimitato alla libreria e a tutte le funzionalità di Perlego. Le uniche differenze sono il prezzo e il periodo di abbonamento: con il piano annuale risparmierai circa il 30% rispetto a 12 rate con quello mensile.
Cos'è Perlego?
Perlego è un servizio di abbonamento a testi accademici, che ti permette di accedere a un'intera libreria online a un prezzo inferiore rispetto a quello che pagheresti per acquistare un singolo libro al mese. Con oltre 1 milione di testi suddivisi in più di 1.000 categorie, troverai sicuramente ciò che fa per te! Per maggiori informazioni, clicca qui.
Perlego supporta la sintesi vocale?
Cerca l'icona Sintesi vocale nel prossimo libro che leggerai per verificare se è possibile riprodurre l'audio. Questo strumento permette di leggere il testo a voce alta, evidenziandolo man mano che la lettura procede. Puoi aumentare o diminuire la velocità della sintesi vocale, oppure sospendere la riproduzione. Per maggiori informazioni, clicca qui.
Maya Programming with Python Cookbook è disponibile online in formato PDF/ePub?
Sì, puoi accedere a Maya Programming with Python Cookbook di Adrian Herbez in formato PDF e/o ePub, così come ad altri libri molto apprezzati nelle sezioni relative a Informatique e Programmation de jeux. Scopri oltre 1 milione di libri disponibili nel nostro catalogo.

Informazioni

Anno
2016
ISBN
9781785283987
Edizione
1
Argomento
Informatique

Maya Programming with Python Cookbook


Table of Contents

Maya Programming with Python Cookbook
Credits
About the Author
About the Reviewer
www.PacktPub.com
eBooks, discount offers, and more
Why subscribe?
Preface
What this book covers
What you need for this book
Who this book is for
Sections
Getting ready
How to do it…
How it works…
There's more…
See also
Conventions
Reader feedback
Customer support
Downloading the example code
Downloading the color images of this book
Errata
Piracy
Questions
1. Getting Started with Maya
Introduction
Using the script editor to investigate functionality
How to do it...
How it works...
There's more...
See also
Running code from the script editor
Getting ready
How to do it...
How it works...
There's more...
Importing Maya's built-in Python functionality
How to do it...
How it works...
There's more...
Accessing documentation for a specific command
How to do it...
How it works...
There's more...
Understanding Create, Query, and Edit flags
Getting ready
How to do it...
How it works...
There's more...
See also
Adding custom folders to your script path
How to do it...
How it works...
There's more...
Writing and running an external script
Getting ready
How to do it...
How it works...
There's more...
Calling a MEL script with Python
Getting ready
How to do it...
How it works...
2. Creating User Interfaces
Introduction
Making a basic window
How to do it...
How it works...
There's more...
Simple controls – making a button
How to do it...
How it works...
There's more...
Retrieving input from controls
How to do it...
How it works...
Using classes to organize UI logic
How to do it...
How it works...
There's more...
Using nested layouts
How to do it...
How it works...
There's more...
Using tabs and scrolling
How to do it...
How it works...
There's more...
Adding menus to your UIs
How to do it...
How it works...
There's more...
3. Working with Geometry
Introduction
Working with selected objects and checking node type
How to do it...
How it works...
There's more...
Accessing geometric data in polygonal models
Getting ready
How to do it...
How it works...
There's more...
Accessing geometric data in NURBS objects
Getting ready
How to do it...
How it works...
There's more...
Creating curves
How to do it...
How it works...
There's more...
See also
Creating new polygonal faces
How to do it...
How it works...
There's more...
Creating new modifiers (noise)
How to do it...
How it works...
There's more...
Creating novel primitives (tetrahedron)
Getting ready
How to do it...
How it works...
There's more...
4. Giving Things a Coat of Paint – UVs and Materials
Introduction
Querying UV data
Getting ready
How to do it...
How it works...
Laying out UVs with Python
Getting ready
How to do it...
How it works...
There's more...
See also
Creating shading networks with code
How to do it...
How it works...
There's more...
See also
Applying shaders to objects
Getting ready
How to do it...
How it works...
There's more...
Using shading nodes for non-shading tasks
Getting ready
How to do it...
How it works...
There's more...
5. Adding Controls – Scripting for Rigging
Introduction
Creating skeletons with script
How to do it...
How it works...
There's more...
Setting up set-driven key relationships with script
Getting ready
How to do it...
How it works...
There's more...
Adding custom attributes and locking and hiding attributes
Getting ready
How to do it...
How it works...
There's more...
Setting up inverse kinematics (IK) with script
Getting ready
How to do it...
How it works...
There's more...
6. Making Things Move – Scripting for Animation
Introduction
Querying animation data
Getting ready
How to do it...
How it works...
There's more...
Working with animation layers
How to do it...
How it works...
There's more...
Copying animation from one object to another
Getting ready
How to do it...
How it works...
There's more...
Setting keyframes
Getting ready
How to do it...
How it works...
There's more...
Creating expressions via script
Getting ready
How to do it...
How it works...
There's more...
7. Scripting for Rendering
Introduction
Creating and editing lights
Getting ready
How to do it...
How it works...
There's more...
Creating GUI to control all lights
Getting ready
How to do it...
How it works...
There's more...
Creating cameras from code
Getting ready
How to do it...
How it works...
There's more...
Rendering a sprite sheet
Getting ready
How to do it...
How it works...
There's more...
See also
8. Working with File Input/Output
Introduction
Using the fileDialog2 command to navigate the file system
How to do it...
How it works...
There's more...
Reading text files
Getting ready
How to do it...
How it works...
There's more...
Writing text files
Getting ready
How to do it...
How it works...
There's more...
See also
Writing binary data
Getting ready
How to do it...
How it works...
There's more...
Reading binary data
Getting ready
How to do it...
How it works...
There's more...
Reading multiple types of files
Getting ready
How to do it...
How it works...
There's more...
9. Communicating with the Web
Introduction
Opening a web page from script
How to do it...
How it works...
There's more...
Grabbing data from a server
Getting ready
How to do it...
How it works...
There's more...
Working with XML data
Getting ready
How to do it...
How it works...
Working with JSON data
Getting ready
How to do it...
How it works...
There's more...
See also
Sending POST data to a web server from Maya
Getting ready
How to do it...
How it works...
There's more...
10. Advanced Topics
Introduction
Wrapping Python functionality in MEL
Getting ready
How to do it...
How it works...
There's more...
Creating custom tools using contexts
Getting ready
How to do it...
How it works...
There's more...
Using script jobs to trigger custom functionality
Getting ready
How to do it...
How it works...
There's more...
Using script nodes to embed code in scenes
Getting ready
How to do it...
How it works...
There's more...
Combining script jobs and script nodes
Getting ready
How to do it...
How it works...
There's more...
Index

Maya Programming with Python Cookbook

Copyright © 2016 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the informa...

Indice dei contenuti