# Week 12
2. Basic rigging
- Parenting & Grouping (snowman & solar system)
- Constraints (ripple & eyeball animation)
3. Motion capture
## Basic rigging: parenting & grouping
## Your practice I : Snowman
***Can you make a snowman nodding and dancing?***
### What to practice:
- Proper naming
- Practice ***pivot position*** using different snapping.
- Proper ***parenting & grouping***
- Modeling a simple snowman, applying squash deformation.
- Then, naming & parenting properly.
- Now let's work on pivot positions before animating.
- Using snapping.
- Hide or lock unused attributes.
> **Pivot Positions:** the pivot position, or pivot point, is the location an object rotates around. In 3D animation, the pivot point is also the position from which the other manipulators will move or scale the object. Setting the correct position of the pivot to create the proper point of manipulation is important in creating a rig.
>### How to change the position of pivot:
In Window, using **Insert** key.
In Mac, using **fn + left arrow** key.
## Your practice II : Solar system
To review the techniques in making the snowman animation, try to make your own [solar system](https://www.youtube.com/watch?v=Tsnph4RBQ4c).
## More rigging practices
### 1. Ripple animation
- [Ripple animation](https://www.youtube.com/watch?v=LLXpD4ejqzY)
- Here you will use **geometry and normal constraints** (Rigging | Deform / Constrain /) to make your object float on the wavy surface.
- You can apply **wave deformation** (Rigging | Deform / Nonlinear / Wave) to the surface to create waves.
- Proper pivot positioning
- Apply Geometry constraints, choose the surface then the object.
- Apply Normal constraints: in the option box, change the value in y axis of the aim vector into 1.
## Eyeball animation: using handles
- [Eyeball animation](https://youtu.be/01zNa0Yzfy8)
- You can choose your body in the Visor (sculpting base meshes).
- You can make an eye ball using a NURBS sphere and a lamp texture (U Ramp)
- Create eyeball handles with NURBs curves.
- In the outliner, rename them, delete histories, freeze transformation, and properly group and parent them.
### Make relations
- Choose the curve handle and the geometry respectively and connect them through **aim constrain.**
Reset the options and turn on *maintain offset*.
- Test your eyeball animation
## Motion Capture
### Data collecting / generating
- Download free motion capture data as .fbx
mocapdata.com provides 933 premium and 4671 free motion datasets and is advertised as 'the world biggest state of the art motion capture library on the earth.'
TurboSquid provides 3D assets including 3D models. You can find free 3D models as well as free motion capture FBX data that can be imported to Maya.
- Create a folder to save the downloaded fbx files.
### In Maya
- Open the Maya scene where your HIK character.
- Import fbx data into the scene. Check the imported character from the outliner window, and play to check the animation.
- In the HIK window, your character should be in the Character box (e.g., Character1) and change the Source to the imported character. (e.g., Humanoid1)
- Now you can see that your character behaves according to the imported MOCAP motion.
### Export to Unreal
- Choose the highest bone of your character, where has kyes.
- Go to File / Send to Unreal -> Selection and export your animation.
- You can choose the mesh and skeletons and export them too.
### In the Unreal Engine
- Opne Epic Games Launcher and Launch Unreal Engine. You need to create your account in the Epic Games, if you don't have.
- Create New Project.
- In the Content Browser, create one folder and import your fbx files to here.
### Related tutorial
- [Unreal Engine 4 - Mixamo To Unreal Engine 4 - UE4 Import by Titanic Games](https://www.youtube.com/watch?v=8RB53mAiwGw)
- [ANIMATION FROM MAYA TO UE 4 10 HD by Manoanim APS](https://www.youtube.com/watch?v=zOZbghSJNpc)
- [MAYA CHARACTER TO UE4 EP5- WALK CYCLE ANIMATION by SacMakersDaniel](https://www.youtube.com/watch?v=_ZSDTp-l3pw)
- [MAYA CHARACTER TO UE4 EP7- IMPORTING CHARACTER AND ANIMATIONS by SacMakersDaniel](https://www.youtube.com/watch?v=5TBHJd6olo8&t=133s)