Dedicating this book to the people who can’t see this beautiful world with their eyes. Donations can be made at : Sightsavers | Protecting sight and fighting for disability rights
About This Book
Learn how to create your tools to speed up your workflow with the power of Python Scripting. With the help of this guide, you can create your own tools in just 3 weeks. I will share my industry secrets and strategies, which I’ve used to create tools that have saved thousands of hours of production time. My tools have been downloaded over 10K times.
If you are a CG Artist who has never written a line of code in your life, this book is the best place to start learning how to code for VFX. I wish I had this book when I first started learning python.
By the end of this book, you will have hands-on experience writing 10+ tools and 10+ mini python modules (step by step instructions, and video tutorials included).
I believe that learning python scripting principles using real-life situations as examples of coding scenarios makes learning easier. The goal of this book is to allow any CG Artist, able to understand and remember the programming principles for a lifetime. In my experience of previously teaching a Python course in person, when we approach learning this way we interactively connect on an emotional level with the information, so it’s easy to understand and learn new things quickly.
So let’s get started!
One can say that parents are our first programmers who taught us about programming concepts like Lists and Functions etc. At some point in our childhood, they taught us how to do some household work on our own.
Maya Script Editor
For small tests and all, Maya native script editors work fine. But when you guys are going to write a big chunk of code, Using Maya script editor is not a good idea. I suggest the usage of external editors / interpreters like ActiveState, Eclipse & PyCharm, Etc.
When we create a sphere from UI in Maya, we can find following command in the history of script editor:
Mel Version of the command :
polySphere -r 1 -sx 20 -sy 20 -ax 0 1 0 -cuv 2 -ch 1;
Let’s consider this example..
All of us are using mobile phones. We have seen many cases here like when we do a financial transaction, we immediately get a message on our mobile screen that a particular transaction has been done.