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

Adding custom attributes and locking and hiding attributes


As you build up the rig for a model, it is often helpful to create custom attributes so that you can link things to forefingerRight.curl (for example), instead of forefingerRight.rotateZ. Not only will that make your rigs a great deal easier to understand, but it also allows you to tie actions of the rig to values that are completely independent of any built-in affects such as rotation or translation.

Just as there are sometimes attributes that you will want to add to a given node, there are often attributes on a node that you know you'll never want to animate. Locking such attributes and hiding them in the channel box is another way to make your rigs easier to work with.

In this example, we'll be looking at how to do both things—adding new, custom attributes to a node and hiding undesirable or unimportant attributes from view. More specifically, we'll be hiding the rotation and scale attributes and adding some attributes of the sort...

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}