Posts

ANIM231 Final

Image
 Golf For this project, I created a golf field. I used a python script to generate 5 balls on the sky at random positions. I defined a function to randomly assign translate values and move the spheres and a function to rename the spheres to "Golf". Then I applied active rigidbody to the balls and passive rigidbody to the ground after the balls were generated. Then I applied a gravity field on the ground, so that the balls will move with real world physics. They would drop on the ground and bounce. To make sure the balls fall to the hole, I created a radial field under the hole to attract the balls, and I set a keyframe for the magnitude to enable the field after a moment. The following is how the animation looks with all the applied attributes.

Rigging

Image
 Rigging For this assignment, I created attributes for the finger rigs and made bending fingers a lot easier. By adjusting and keying the attributes, it is simpler to animate the hands. First, I created nurve curves to be the controller and use the line "cmds.parent(r  = 1, s = 1)" to parent the controller and joints together. Use the script to connect the created attributes to rotate values, and it created the following result. It makes animating fingers easier with the attribures. The video is an example of animating fingers.

Stretchy Joints

Image
 Stretchy Joints In this assignment, I used a script with defined function to rename joints and connect null to the wrist  joint to make a stretchy arm. The function is as the following: It is for renaming joints to categorize the parts. To execute the function and making the arm stretchy, I wrote the script as: A distance measurement tool and a null object will be created after running the script.

Functions

Image
 Using Functions I used function on top of another function to create this structure. First, this function is for creating spheres with random translate and scale values. Continuation of the above function. Adjust the translate and scale values with random numbers. This function is for creating shaders of the spheres. I put on the color orange and blue to the spheres. This is the function to complete the structure and connecting the spheres and pipes together. At the end, I created 100 spheres so that the sturcture looks like that in the image.

The Golden Angle

Image
 Playing with the Golden Angle This week we are using the function of creating spheres to form a pattern. The golden angle in the sine and cosine function can wavy pattern in a circle. In my this scene, there are 2000 spheres in total. Implementing "cmds.setAttr(obj[0] + ".tx", math.sin(goldenAngle)*math.sqrt(i))" and "cmds.setAttr(obj[0] + ".tz", math.cos(goldenAngle)*math.sqrt(i))" makes the translate x and z moves from the previous point when creating a new sphere. There is an additional line of code "cmds.setAttr(obj[0] + ".ty", math.sin(goldenAngle)*10*math.pi)". It makes the spheres go up and down in the y translation. In my script, I added an if statement within the loop. If the count is more than 1/3 of the total repeat the same code but not the "translate y". This makes a tornado shape. The points of each tornado are the starting points, and the sphere creates in a pattern that goes up or down gradually. It ...

4-Wheel Car

 Animating a Car In this practice, I was able to animate the wheels in expression editor. The wheels are moving back and forth along the z axis using sine function. There are also squash deformers so that the wheels are moving in a funny way.