Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Maya Programming with Python Cookbook

You're reading from  Maya Programming with Python Cookbook

Product type Book
Published in Jul 2016
Publisher Packt
ISBN-13 9781785283987
Pages 266 pages
Edition 1st Edition
Languages
Author (1):
Adrian Herbez Adrian Herbez
Profile icon Adrian Herbez

Table of Contents (17) Chapters

Maya Programming with Python Cookbook
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
1. Getting Started with Maya 2. Creating User Interfaces 3. Working with Geometry 4. Giving Things a Coat of Paint – UVs and Materials 5. Adding Controls – Scripting for Rigging 6. Making Things Move – Scripting for Animation 7. Scripting for Rendering 8. Working with File Input/Output 9. Communicating with the Web 10. Advanced Topics Index

Setting up set-driven key relationships with script


A great deal of rigging is nothing more than setting up connections between attributes. Sometimes, those connections can be very direct, such as making sure that two joints are always in exactly the same position in world space, but in other times, something other than a direct one-to-one mapping is called for.

There are a few different ways to connect attributes in non-linear ways, including using Maya's set-driven key capability to map one arbitrary range of an attribute onto a different arbitrary range of another. In this example, we'll be looking at how to set that up with scripting.

Our example will set up the "Hello World" equivalent for using a set-driven key, a finger that curls all of its joints smoothly at the same time, allowing the animator to keyframe a single attribute per finger instead of three (or possibly even more).

Getting ready

For this example, you'll want to have a simple chain of at least three bones. The output of the...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}