Follow phocion1
Follow
Following phocion1
Following
Add To Collection
Collection
Comments
Devlog
Programming for Animation Devblog
←
Return to Programming for Animation Devblog
Devlog
Operators
December 16, 2022
by
phocion1
Arithmetic Operators + for addition - for subtraction * for multiplication / for division Logical Operators == for equal to != for not equal to >= for greater than or equal to <= for less than or equa...
Continue reading
Python in Maya
December 16, 2022
by
phocion1
Must import maya.cmds as something, anything works but cmds is good for clarity. Maya specific commands must be preceded with cmds, for example cmds.object(). You can create a cube with cmds.polyCube...
Continue reading
Variables and Data Types Continued
December 16, 2022
by
phocion1
The type() keyword allows you to see what data type the variable is. The data type can be converted with an =...
Continue reading
Classes/Objects
December 16, 2022
by
phocion1
Classes are constructors that are used as a template to build objects. Classes are defined with the class keyword, followed by the classes name. Classes use the __init__() function to assign values to...
Continue reading
Functions
December 16, 2022
by
phocion1
A block of code that runs when it is called. Can be called multiple times to be ran multiple times. Can receive and return data. Has its own local variables. Defined by using the def keyword, the func...
Continue reading
Data Types
December 16, 2022
by
phocion1
String (str) - holds a sequence of numbers Numer...
Continue reading
Variables
October 10, 2022
by
phocion1
During the first week I caught up on the basics of Python, with a focus on variables. Variables should be properly formatted and appropriately named to correspond to the value they contain, e.g. in ca...
Continue reading