+1 tag for Google+

Tuesday, 13 September 2016

Maya Expressions 03 - Changing Colours

In this next installment of my tutorial series on Maya expressions, We put our conditional statements to practical use by showing how we can use expressions to get the translate Y of one object to drive the colour attributes of another object.

I also show some code checking techniques by using the print command to expose useful information to the script editor, showing what is going on in our expressions during execution time, so we can ensure that flow of the execution is as we intend it to be.

I hope that it also shows that all attributes use numerical values in one for or another before they are evaluated to result in colours, vectors or on/off states.