Maya Python for Games and Film: A Complete Reference for by Adam Mechtley, Ryan Trowbridge

By Adam Mechtley, Ryan Trowbridge

Maya Python for video games and Film is the 1st publication to concentration completely on the best way to enforce Python with Maya. Written through relied on specialists within the box, this in-depth consultant may also help you grasp Maya Python, no matter if you're a pro technical artist trying to make the transition from MEL to Python or an aspiring artist no longer desirous to scramble for info.

Show description

Read Online or Download Maya Python for Games and Film: A Complete Reference for Maya Python and the Maya Python API PDF

Best python books

Essential SQLAlchemy

Essential SQLAlchemy introduces a high-level open-source code library that makes it more straightforward for Python programmers to entry relational databases equivalent to Oracle, DB2, MySQL, PostgreSQL, and SQLite. SQLAlchemy has turn into more and more well known considering its unlock, however it nonetheless lacks strong offline documentation. This functional e-book fills the space, and since a developer wrote it, you get an target examine SQLAlchemy's instruments instead of an advocate's description of the entire "cool" features.

SQLAlchemy comprises either a database server-independent SQL expression language and an object-relational mapper (ORM) that permits you to map "plain outdated Python objects" (POPOs) to database tables with out considerably altering your latest Python code. crucial SQLAlchemy demonstrates how one can use the library to create an easy database program, walks you thru basic queries, and explains how one can use SQLAlchemy to connect with a number of databases concurrently with an analogous Metadata. you furthermore may find out how to:

* Create customized forms for use on your schema, and whilst it's precious to exploit customized instead of integrated varieties
* Run queries, updates, and deletes with SQLAlchemy's SQL expression language
* construct an item mapper with SQLAlchemy, and comprehend the diversities among this and energetic list styles utilized in different ORMs
* Create items, keep them to a consultation, and flush them to the database
* Use SQLAlchemy to version item orientated inheritance
* supply a declarative, energetic checklist trend to be used with SQLAlchemy utilizing the Elixir extension
* Use the SQLSoup extension to supply an automated metadata and item version in line with database mirrored image

In addition, you'll find out how and while to take advantage of different extensions to SQLAlchemy, together with AssociationProxy, OrderingList, and more.

Essential SQLAlchemy is the much-needed consultant for each Python developer utilizing this code library. rather than a feature-by-feature documentation, this e-book takes an "essentials" technique that provides you precisely what you want to develop into effective with SQLAlchemy correct away.

Mastering Regular Expressions (3rd Edition)

Regular expressions are an incredibly strong instrument for manipulating textual content and information. they're now typical positive factors in a variety of languages and well known instruments, together with Perl, Python, Ruby, Java, VB. web and C# (and any language utilizing the . web Framework), personal home page, and MySQL.

for those who don't use typical expressions but, you will find during this booklet an entire new international of mastery over your info. if you happen to already use them, you'll savour this book's exceptional element and breadth of assurance. for those who imagine you recognize all you want to learn about typical expressions, this ebook is a gorgeous eye-opener.

As this publication exhibits, a command of standard expressions is a useful ability. typical expressions let you code complicated and sophisticated textual content processing that you simply by no means imagined can be computerized. standard expressions can prevent time and aggravation. they are often used to craft dependent ideas to quite a lot of difficulties. as soon as you've mastered standard expressions, they'll turn into a useful a part of your toolkit. you'll ask yourself the way you ever acquired through with no them.

but regardless of their huge availability, flexibility, and unprecedented strength, ordinary expressions are usually underutilized. but what's strength within the arms of knowledgeable could be fraught with peril for the unwary. learning normal Expressions can assist you navigate the minefield to changing into knowledgeable and assist you optimize your use of normal expressions.

getting to know normal Expressions, 3rd variation, now incorporates a complete bankruptcy dedicated to personal home page and its robust and expressive suite of standard expression services, as well as improved Hypertext Preprocessor insurance within the valuable "core" chapters. moreover, this variation has been up to date all through to mirror advances in different languages, together with extended in-depth assurance of Sun's java. util. regex package deal, which has emerged because the common Java regex implementation. themes include:
* A comparability of good points between assorted models of many languages and instruments
* How the average expression engine works
* Optimization (major mark downs to be had the following! )
* Matching simply what you will want, yet now not what you don't wish
* Sections and chapters on person languages

Written within the lucid, interesting tone that makes a fancy, dry subject turn into crystal-clear to programmers, and sprinkled with suggestions to advanced real-world difficulties, learning common Expressions, 3rd version deals a wealth info so that you can positioned to rapid use.

Reviews of this re-creation and the second one edition:

"There isn't a greater (or extra helpful) booklet to be had on average expressions. "

--Zak Greant, handling Director, eZ Systems

"A genuine tour-de-force of a booklet which not just covers the mechanics of regexes in awesome element but in addition talks approximately potency and using regexes in Perl, Java, and . internet. .. in case you use normal expressions as a part of your expert paintings (even if you happen to have already got an outstanding publication on no matter what language you're programming in) i might strongly suggest this ebook to you. "

--Dr. Chris Brown, Linux Format

"The writer does a very good activity best the reader from regex beginner to grasp. The e-book is intensely effortless to learn and chock packed with priceless and appropriate examples. .. normal expressions are helpful instruments that each developer must have of their toolbox. studying standard Expressions is the definitive advisor to the topic, and a very good source that belongs on each programmer's bookshelf. Ten out of Ten Horseshoes. "

--Jason Menard, Java Ranch

Python Developer's Handbook

The Python Developer's instruction manual is designed to reveal skilled builders to Python and its makes use of. starting with a short creation to the language and its syntax, the e-book strikes quick into extra complex programming subject matters, together with embedding Python, community programming, GUI toolkits, JPython, internet improvement, Python/C API, and extra.

Python 201: Intermediate Python

Python 201 is the sequel to my first e-book, Python one hundred and one. in the event you already recognize the fundamentals of Python and now you must visit the following point, then this can be the publication for you! This booklet is for intermediate point Python programmers in simple terms. There will not be any newbie chapters right here. This e-book is predicated onPython three.

Extra info for Maya Python for Games and Film: A Complete Reference for Maya Python and the Maya Python API

Example text

These lines will create a new locator and store the name of its transform node in a variable called loc. spaceLocator()[0]; 2. Execute the following lines to store the locator’s x-scale in a variable and print the result, which will be 1 by default. scaleX'); print(sx); The getAttr command allows you to get the value of any attribute on any node by simply passing in a string with the node’s name, a period, and the attribute name. scaleX” in this case. 3. Execute the following lines to double the sx value and assign the new value to the node’s attribute.

Before we begin our investigation, we will first look at the key tools that Maya Python programmers have at their disposal. EXECUTING PYTHON IN MAYA Maya has many tools built into its GUI that allow users to execute Python code. Before you begin programming Python code in Maya, you should familiarize yourself with these tools so that you know not only what tool is best for your current task, but also where to look for feedback from your scripts. Command Line The first tool of interest is the Command Line.

3. The page will update to show you only the polyCube command. Select the polyCube command from the list under the label “Substring: polyCube”. 7 Python Command Reference. Python Command Reference 25 command. As you can see, the Command Reference documents break up information for all commands into different sections, which we will now look at in more detail. Synopsis The synopsis provides a short description of what the command does. In this case the synopsis states: polyCube is undoable, queryable, and editable.

Download PDF sample

Rated 4.05 of 5 – based on 34 votes