Unexpected face offset after parenting operations in create_head_and_body_scene method #64

Closed
opened 2024-11-27 07:07:52 +08:00 by AntonioGarciaRig · 1 comment
AntonioGarciaRig commented 2024-11-27 07:07:52 +08:00 (Migrated from github.com)

Hi everyone.

I've been testing the resources from UEFest over the past few weeks to replicate the DNA Calibration Demo (https://dev.epicgames.com/community/learning/tutorials/EoPj/metahuman-dna-calibration-deep-dive) However, I’ve encountered unexpected results during the FBX export process.

My current environment for running the test are:
Maya - 2022.2
Maya Up Axis - Z
Metahuman_DNA_Calibration lib + UFest files (this repo) - Current version
No changes has been made to the script apart from ROOT_DIR path, WORK_DIR path is in the same path as tutorial and contains the files needed.

LenaDNACalibration3
This is the result of running the uf_calibration.py script, the SKs for each LOD are consistently generated with that offset for the facial joints (FACIAL_C_FacialRoot, FACIAL_C_Neck1Root, FACIAL_C_Neck2Root). I found that the offset occurs specifically during the execution of the following code snippet within def create_head_and_body_scene():

for facial_joint, neck_joint in zip(facial_root_joints, neck_joints): cmds.parent(facial_joint, neck_joint)

If I manually omit this part of the script and instead perform the parent operation directly in Maya after the script has finished running, the hierarchy updates correctly without introducing the offset.

LenaDNACalibration4

However, the downside to this manual approach is that it requires running the export method separately for each LOD, which adds additional steps and time to the workflow.

The are no errors on the log during the script execution, although there are some warnings that I think are not related.
maya_log.txt

Any help on this would be much appreciated.

Hi everyone. I've been testing the resources from UEFest over the past few weeks to replicate the DNA Calibration Demo (https://dev.epicgames.com/community/learning/tutorials/EoPj/metahuman-dna-calibration-deep-dive) However, I’ve encountered unexpected results during the FBX export process. My current environment for running the test are: Maya - 2022.2 Maya Up Axis - Z Metahuman_DNA_Calibration lib + UFest files (this repo) - Current version No changes has been made to the script apart from ROOT_DIR path, WORK_DIR path is in the same path as tutorial and contains the files needed. ![LenaDNACalibration3](https://github.com/user-attachments/assets/0739da50-193c-4b6e-9a37-18f1b2d58ab5) This is the result of running the `uf_calibration.py` script, the SKs for each LOD are consistently generated with that offset for the facial joints (FACIAL_C_FacialRoot, FACIAL_C_Neck1Root, FACIAL_C_Neck2Root). I found that the offset occurs specifically during the execution of the following code snippet within `def create_head_and_body_scene()`: `for facial_joint, neck_joint in zip(facial_root_joints, neck_joints): cmds.parent(facial_joint, neck_joint)` If I manually omit this part of the script and instead perform the parent operation directly in Maya after the script has finished running, the hierarchy updates correctly without introducing the offset. ![LenaDNACalibration4](https://github.com/user-attachments/assets/a678f9a6-ba69-4293-b91d-e4910175214d) However, the downside to this manual approach is that it requires running the export method separately for each LOD, which adds additional steps and time to the workflow. The are no errors on the log during the script execution, although there are some warnings that I think are not related. [maya_log.txt](https://github.com/user-attachments/files/17926582/maya_log.txt) Any help on this would be much appreciated.
AntonioGarciaRig commented 2024-12-10 02:35:48 +08:00 (Migrated from github.com)

Hi all,

This was answered and solved in the Unreal forums: https://forums.unrealengine.com/t/tutorial-metahuman-dna-calibration-deep-dive/1520481/9?u=lord_triste

Solution: Disable Maya Autokeyframe before running the script.

Hi all, This was answered and solved in the Unreal forums: [https://forums.unrealengine.com/t/tutorial-metahuman-dna-calibration-deep-dive/1520481/9?u=lord_triste](url) Solution: Disable Maya Autokeyframe before running the script.
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: CGNICO/Metahuman_DNA_Calibration#64
No description provided.