Content Dev:IC Maya Motion to iClone (Advanced Skeleton 5)

From Reallusion Wiki!
Revision as of 22:08, 27 June 2022 by Chuck (RL) (Talk | contribs) (Created page with "{{TOC}} {{Parent|Content_Dev:IClone|iClone}} == Process Introduction == === Important Considerations === #Character skeletons should not be haphazardly deformed: scaled or...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Main article: iClone.

Process Introduction

Important Considerations

  1. Character skeletons should not be haphazardly deformed: scaled or stretched.
  2. Skeleton bones should not be haphazardly renamed.
  3. Bones should not be added or removed from the character skeletons.

Simple Process Overview

  1. Launch Maya and install Advanced Skeleton 5. You'll need to perform a full install in order to access the controls window.
  2. Open the provided MB file.
  3. Adjust the motion of the character using the pre-deployed Advanced Skeleton.
  4. Bake the final animation onto the Human IK character.
  5. Select the Human IK skeleton and export it in FBX format.
  6. Open the character in iClone 8 and apply the FBX file.
  7. Check if the performance matches the one in Maya.

Provisional Files

  • ReadyToAnimate.mb: Maya binary file for motion adjustment (Maya 2020).
  • Advanced Skeleton 5: Folder containing plugin installation files.
  • DummyActor.iAvatar: Avatar that can be opened with iClone 8.
  • Tpose.fbx: This file needs to be applied before importing FBX motion files into iClone 8.
  • HIK Character.mb: Used to inspect RL standard custom motions.

Usage Instructions

Launch Maya and open ReadyToAnimate.mb. Make sure to not use Import command or drag it into the scene as that will prepend a namespace to the bone names. If you find that the character is laying down when loaded, you must go to Windows > Settings/Preferences > Preferences, and in the subsequent window, enabled the Y option under Setting > World Coordinate System > Up Axis.

Ic maya motion to iClone 01.png

ReadyToAnimate.mb contains two layers: DummyActor_Adv for adjusting motions, and DummyActor_HIK for exporting motions.

Ic maya motion to iClone 02.jpg

Using Advanced Skeleton 5

Installing Advanced Skeleton 5

Take all of the contents within the Advanced Skeleton 5 folder and put them under C:/Users/YOUR NAME/Documents/maya/scripts. Drag the install.mel file into Maya's viewport to install the plugin commands into the shelf.

Ic maya motion to iClone 03.jpg

IK/FK Switching

Click on the cross gizmo to the side of the character. In the Channel Box adjust the FIKIKBlend value. "0" is forward kinematic and "10" is inverse kinematic.

Ic maya motion to iClone 04.gif

You can also launch the control panel from the shelf and click on a cross icon in the control panel diagram. Besides that, you can also right-click on a cross icon and perform Switch > FK2IK to mode switch. Keep in mind that a "switch" key will be set by doing this.

Ic maya motion to iClone 05.gif

IK/FK Alignment

Switching between IK and FK mode is a frequent operation in the course of an animation. If the two systems are misaligned, then it'll become difficult to control. You can align FK to IK by opening the control panel and right-clicking on a cross icon to perform Align > FK2IK.

Ic maya motion to iClone 06.gif

Finger Controls

Select the yellow control curves surrounding the hand palms or select the finger icons in the control panel to see the finger attributions in the Channel Box. These values can be multi-selected to open and close multiple fingers at once.

Ic maya motion to iClone 07.gif

Foot Controls

Select any of the three red circles on the feet to bend from the heels, balls, or toes. In order to roll the feet, select the IK control curve and adjust the Channel Box > Rock: negative values roll the foot inward while positive values roll the foot outward.

Ic maya motion to iClone 08.gif

The three aforementioned red circle controllers can also be selected near the bottom of the control panel.

Ic maya motion to iClone 09.gif

Body Controls

The deep blue arrow curve controller moves and rotates the hips which can also drag the rest of the body with it. The three light-blue rings on the body control the spine, and can only be rotated, not moved. The yellow double curve controller only gyrates the hips and does not have an influence over the rest of the body.

Ic maya motion to iClone 10.gif

The aforementioned controllers can also be selected in the control panel. By clicking on the spine button, one can select all of the light blue controls and adjust the entire spine at once.

Ic maya motion to iClone 11.gif

Head and Shoulder Controls

Two light blue control curves are responsible for turning the head. One control is used to rotate the neck and the other for the head. Two lateral yellow control curves can be used to move and rotate the shoulders. Due to the limitations of the character, one should be extra careful when adjusting the shoulders.

Ic maya motion to iClone 12.gif

Head and shoulder controllers can also be selected in the control panel.

Ic maya motion to iClone 13.gif

Motion Production Precautions

  • Framerate should be set to "60 fps" beforehand.
  • Playback speed should be set to "60 fps x1" to make sure that the workspace frame rate matches that of the export frame rate.

Ic maya motion to iClone 14.jpg

  • Make sure all keys are set on the controllers and not directly on the skeletal bones themselves.
  • iClone does not support squash and stretch animation with bone joints. Not only are these effects ignored, but they can also cause some unexpected issues when exported to iClone.
  • You are encouraged to use Maya's Graph Editor to slow in slow out and massage the character animations.

File Export and Inspection

Using the Export Rig

Show only the dedicated export character by activating the DummyActor_HIK layer and disabling the DymmActor_Adv layer in the Diplay panel.

Ic maya motion to iClone 15.png

Baking the Final Motion

Bake the motion to the skeleton by switching to the Human Ik tab (A) and clicking on the blue button in the upper-left corner (B). Execute Bake > Bake To Skeleton with the default settings.

Ic maya motion to iClone 16.jpg

Exporting the FBX File

Export an FBX file by selecting all of the bones below the RL_BoneRoot on the HIK_Character in the Outliner. Avoid selecting rig-related components (like control curves) and auxiliary bones.

Ic maya motion to iClone 17.png

Perform File > Export Selection and open Options to the right. Click on the Edit presets... button and set FBX File Format > Version: to "FBX 2018" (2012 to 2018 are all compatible). Once set, perform Export Selection.

Ic maya motion to iClone 18.jpg

Importing the FBX File into iClone

Launch iClone 8 and drag the provided DummyActor.iAvatar file onto the viewport. Drag the FBX file exported in the previous step onto the dummy character. In the subsequent window, set Motion Profile to "Current Character" and load the provided Tpose.fbx file into Motion T-Pose, then click on the Convert All button.

How to Import Multiple Animation Segments

Select multiple FBX animation files and drag them onto the character in iClone 8. Adjust the settings using the same configuration as mentioned above. All of the animations will then be saved under the Content Manager > Animation > Motion > Custom category. Now you can apply each motion directly to the character from the Content Manager.

Check if the Animations are Consistent

Check if the animation in iClone 8 looks like the animation in Maya. If the results are different, then contact technical support or use the contact window or PM for your Reallusion-related project for a quick response; You will need to provide the FBX and Maya file to help diagnose the issue.

File Submission

  • Please provide the FBX and Maya file for inspection.
  • Submit the files to your PIC at Reallusion and wait for feedback.

Importing Custom Character Motion to iClone 8

If you have a unique character skeletal structure, then you'll need to retarget the animation to Human IK first.

Deploying HumanIK

Open the character animation project and set the framerate to 60 fps. Import HumanIK skeleton by switching to the Rigging mode and select Skeleton > HumanIK.

Ic maya motion to iClone 19.png

Set up the rig by clicking on Human IK > Create Custom Rig Mapping and click on Define in the pop-up window.

Ic maya motion to iClone 20.png

Skeletal Mapping

Map the bones of the custom character to the HumanIK skeleton (T-pose recommended). Do this by clicking on the Definition tab, and double-click on a bone in the Mapping panel, then selecting the corresponding bone on the character in the viewport. Using X-ray Joints is recommended. Finish by mapping the entire body including the feet, fingers, spine, shoulders, and neck.

Ic maya motion to iClone 21.gif

Ic maya motion to iClone 30.jpg

Ic maya motion to iClone 31.jpg

Even though HumanIK's automatic mirror mapping is convenient, one should be careful when it comes to the fingers, as it can be quite error-prone.

Mapping Lock

Once the mapping is complete, click on the lock icon to finish the Skeleton Definition rigging process.

Ic maya motion to iClone 22.jpg

Importing and Applying Motion to Human IK

Import the provided HIK Character.mb file into Maya's viewport. Make sure that Use Namespaces is disabled in the import settings to prevent Maya from prepending the file name to the bones.

Ic maya motion to iClone 23.jpg

Change Human IK > Character to the character that was just imported, and change the Source to the Skeleton Definition that was mapped from the previous steps. This way motions can be applied to this new Human IK character.

Ic maya motion to iClone 24.jpg

Adjusting Motions

Due to the length and number differences in the bones, the two skeletal systems will invariably animate in distinct ways, especially when it comes to bending forward, whereas the HIK skeleton tends to bend more down.

Advanced Skeleton in black and Human IK in green.

You can select portions of the body for readjustment, such as aligning the Human IK bone positioning to the Advanced Skeleton, by using IK Blend T and IK Blend R.

Advanced Skeleton in black and Human IK in green.

Baking Motion to the Skeleton

Once the adjustments have been made to the motion, click on the blue button in Human IK panel and select Back > Bake Skeleton. Once the animation is baked, follow the steps mentioned in #File_Export_and_Inspection for the final FBX export.

Ic maya motion to iClone 27.jpg

Checking for Consistency in iClone 8

Internal and advanced developers can check if the performance in iClone 8 matches that of the original motion in Maya. Drag and drop the FBX file exported from Maya directly into the viewport and press Shift+Alt+B to view the character's skeleton (developer version required). Only the skeleton will be shown (figure to the left of the following illustration). When the avatar and the FBX skeleton are zeroed out in world space, then one can inspect for motion inconsistency between the two figures that are stacked on top of each other.

Ic maya motion to iClone 32.png