# Animation Workflows

### ![](https://4247397058-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEJ2tuWEwbI5z7m6uDYq6%2Fuploads%2FEwy2xsC0rFXh3dTm55Zx%2FCC4D_importBodyMotion.png?alt=media\&token=f3b4bc32-ce36-4537-8e8a-d567188b15b1) CC4D Import Body Motion <a href="#cc4d-import-body-motion" id="cc4d-import-body-motion"></a>

A script to import a animated joint hierarchy from a FBX file and apply a character definition tag to it as well as to the CC4D Control Rig. It will also automatically prepare the Control Rig settings for the retargeting process.  This script comes with some additional character definition presets located in the asset browser contents of the CC4D Tools for joint hierarchies coming from CC4/iClone, ActorCore, Mixamo and Rokoko Studio.

{% embed url="<https://drive.google.com/file/d/1HRO0-yLqLywMC7gE-Rvmsb9HaFzsZ3N8/view?usp=sharing>" %}
&#x20;
{% endembed %}

<figure><img src="https://4247397058-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEJ2tuWEwbI5z7m6uDYq6%2Fuploads%2Fhc23TRX1GSWHt8uctL4g%2FCC4D_importMotion_01.gif?alt=media&#x26;token=d3833c89-2574-426e-ac5b-39671a446867" alt=""><figcaption><p>CC4D ImportMotion Tool</p></figcaption></figure>

* select the *CC4\_CTRL* null object inside the *CC4\_character* root null object
* click the **CC4D ImportBodyMotion** icon in CC4D Tools palette
* select the FBX file with the animation data&#x20;
* the script will import the animated joint hierarchy from the FBX file with a character definition tag, prepare the Control Rig Settings for retargeting and add a character definition tag to the *CC4\_CTRL* null object as well
* to start the retargeting process set up the character definition through the character definition manager for both, the imported joint hierarchy and the CC4D Control Rig and create a character solver
* you can find several character definition presets for joint hierarchies coming from CC4/iClone/AccuRig/ActorCore, Mixamo or Rokoko Studio as well as for the CC4D Control Rig in the asset browser content of the CC4D Tools

{% hint style="info" %}
**Info:** The **CC4D ImportMotion** Tool will also work and import animation data when the CC4\_CTRL null object is not selected. In this case it will simply not prepare the Control Rig for retargeting and will add no character definition tag to it.
{% endhint %}

***

### ![](https://4247397058-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEJ2tuWEwbI5z7m6uDYq6%2Fuploads%2FEmWwLPbUMmTZvzHc03S3%2FCC4D_importJointPose.png?alt=media\&token=41eaa42d-ef3c-4aa1-9ed0-c95bfd7648e6) CC4D Import Joint Pose <a href="#cc4d-import-joint-pose" id="cc4d-import-joint-pose"></a>

To correctly retarget a animated joint hierarchy coming from iClone, Actor Core, Mixamo, Rokoko or other sources it will need a proper reference pose in the beginning of the sequence. This script will import a pose from a FBX file and add it at the beginning of a animated joint hierarchy with the only preference that the hierarchy structure has to be same for the animated hierarchy and the imported one.

<figure><img src="https://4247397058-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEJ2tuWEwbI5z7m6uDYq6%2Fuploads%2FEyvfIi5DgpwZSi3R9Nya%2Fcc4d_importJointPose_01.gif?alt=media&#x26;token=7555e615-d4b3-47ac-896e-2987169346b7" alt=""><figcaption><p>CC4D ImportJointPose Tool</p></figcaption></figure>

* select the root bone of a joint of a animated hierarchy in the object manager
* click the **CC4D ImportJointPose** icon in CC4D Tools palette
* select the FBX file with the pose you want to import in the file dialog
* if both are hierarchies match and have the same structure and naming the pose will be added at the beginning of the squence

***

### ![](https://4247397058-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEJ2tuWEwbI5z7m6uDYq6%2Fuploads%2FUcmB7yEA7lJXp6pWQbQd%2FCC4D_importFaceMotion.png?alt=media\&token=10e3029e-5705-4ea9-be06-2a98d05c735e) CC4D Import Face Motion <a href="#cc4d-import-face-motion" id="cc4d-import-face-motion"></a>

A script to import facial animation and automatically retarget the data to the control objects of the CC4D Face Rig.

The tool supports animation data coming from CC4/iClone, Rokoko Studio & the Moves app by Maxon

{% embed url="<https://drive.google.com/file/d/1zKzOAABdb-oAxWWR3u-YYQdAbopZ1QQC/view?usp=sharing>" %}

<figure><img src="https://4247397058-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEJ2tuWEwbI5z7m6uDYq6%2Fuploads%2FA4PEwxZgR1FZyWYHjaOQ%2Fcc4d_importFaceMotion_01.gif?alt=media&#x26;token=0cd550a0-c079-4565-b6bb-693867b29941" alt=""><figcaption><p>CC4D ImportFaceMotion Tool</p></figcaption></figure>

**CC4, iClone & Rokoko Studio**

* select the *face\_CTRL\*facialProfileName\** null object inside the :green\_circle: *MASTER\_CTRL+*  object
* click the **CC4D ImportFaceMotion** icon in CC4D Tools palette
* select the FBX file with the facial animation data&#x20;
* the script will import the *CC\_Base\_Body* mesh with the animated pose morph data and activate the retargeting on the *face\_CTRL\*facialProfileName\** null object under the *RETARGETING* tab&#x20;
* when the facial retargeting is active the control objects of the Face Rig can not be moved manually

{% embed url="<https://drive.google.com/file/d/1lz35Nztqhuz5xGnVUbN5tDkxipToTSxr/view?usp=sharing>" %}
CC4D ImportFaceMotion Tool with the Moves by Maxon App
{% endembed %}

**Moves by Maxon App**

* load a *Face Capture* Object through the Moves by Maxon window that can be found under extensions
* click the **Create Pose** Morph Button in the 'Object' Tab of the *Face Capture* Object
* click the **Bake BlendShapes** under the 'Tag' Tab of the *Moves Pose Morph Helper Tag* on the polygon object that got created
* select the *Pose Morph Tag* of this object and set its mode to 'Animate'
* If not already in the scene copy the 'Maxon Moves Mesh' with the animated 'Pose Morph Tag' into the scene with your Control Rigged Character
* select both the *Maxon Moves Mesh* and the *face\_CTRL\*facialProfileName\** null object inside the :green\_circle: *MASTER\_CTRL+*  object while holding the Ctrl key
* click the **CC4D ImportFaceMotion** icon in CC4D Tools palette
* No file dialogue will open up as a mesh with a animated *Pose Morph* tag has been found within the selection
* The script will connect the animated pose morphs to the retargeting setup of the CC4D Face Rig and activate it

***

### ![](https://4247397058-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEJ2tuWEwbI5z7m6uDYq6%2Fuploads%2FvHR4i3eXYl5RqNC9HuXC%2FCC4D_bake.png?alt=media\&token=9f47d6ba-1462-4440-912f-8863cddfecc6) CC4D Bake <a href="#cc4d-bake" id="cc4d-bake"></a>

This script will bake the postion, rotation, scale & parameters for the control objects of the CC4D Control Rig & Face Rig. Optionally it will also remove imported animation data that has been retargeted to the Rigs from the scene.

{% embed url="<https://drive.google.com/file/d/1PMaKBb8DX8MCKQdfzkH64XFNTUoR_qVY/view?usp=sharing>" %}
&#x20;
{% endembed %}

{% hint style="warning" %}
**Important:** \
The CC4D Bake tool will only bake the control objects of the CC4D Control Rig & Face Rig and only parameters that are marked with a red keyframe selection
{% endhint %}

<figure><img src="https://4247397058-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEJ2tuWEwbI5z7m6uDYq6%2Fuploads%2FxqTLHrH3Taw6Rfhcpayx%2Fcc4d_bake.gif?alt=media&#x26;token=c6d89256-f2c9-4f4d-9efd-4b4be7502f68" alt=""><figcaption><p>CC4D Bake Tool (The baking process in this preview has been speed up)</p></figcaption></figure>

* select the *CC4\_CTRL* null object inside the *CC4\_character* root null object, \
  the *face\_CTRL\*facialProfileName\** null object inside the :green\_circle: *MASTER\_CTRL+*  object or the control objects you want to bake
* click the **CC4D Bake** icon in CC4D Tools palette to open the bake dialoge
* select the parameters you want to bake and if you want to remove the motionSource objects from the scene
* click the *Start Baking* Button to beginn the baking process
* once the baking is done you can close the baking dialoge

***

### Manual Retargeting (Legacy Workflow)  <a href="#manual-retargeting" id="manual-retargeting"></a>

{% embed url="<https://www.youtube.com/watch?v=0okc45PGm0M>" %}

In this video I'm going to show you some manual approaches to retarget motion data coming from different sources like CC4/iClone, ActorCore, Mixamo or Rokoko to the CC4D Control Rig. I will give you some tips how to prepare the data if nescesary and how to bake everything down to the control objects of the rig. \
\
0:00 Introduction \
0:44 Character Creator 4 / iClone \
10:30 ActorCore \
17:05 Mixamo \
23:06 Rokoko \
28:57 Animation Baking
