PYTHON SCRIPTING
HANDBOOK FOR VFX ARTISTS
                                                                                                                -By Subbu Addanki

Book.png

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! 
 

Chapters In Brief !!
 

01.
Introduction
To Python

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.

Read More..

02.
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.

Read More..

03.
Syntax

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;

Read More..

04.
Strings

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. 

Read More..

05.
Variables

During the Corona pandemic times (2020-2022), Many of us worked from home (WFH). During this time at least some of us might have tried something new in the kitchen like making Tea or some tasty dish etc. Variable is a name that refers to a memory location and is used to contain a value. When we query/run this variable, it can return what it contains...

Read More..

06.
Lists

One can say that parents are our first programmers who taught us about programming concepts like Lists. At some point in our childhood, they taught us how to do some household work, like preparing a list of items to purchase, on our own...

Read More..
 
Python Scripting -All Pages In One PDF (In Below Doc)
 
Python Scripting -Jump To Section / Scrolling Feature (In Below Docs)