Skip to content

Some questions about script "dna_viewer_grab_changes_from_scene_and_propagate_to_dna.py"? #29

@1165048017

Description

@1165048017

This script shows 5 steps need to be done:

  1. Start Maya
  2. open maya scene (do 2.1 or 2.2)
    2.2. start DNA Viewer GUI (dna_viewer_run_in_maya.py)
  3. Run this script to the part called "load data"
  4. In the scene, make modifications to the neutral mesh and joints
  5. Run this script from the part called "propagate changes to dna" to the end

I tried this but meet some problem:

  1. The step3 will load DNA again, why I need to do step2 first?
    The code build_rig(dna=dna, config=config) in step3 will reload DNA and overwrite the maya scene
  2. After step3, I tried to modify the bone translation and the vertex of blendshape/head_lod0_mesh! but when I run step4:
reader = load_dna_reader(CHARACTER_DNA)
calibrated = DNACalibDNAReader(reader)

run_joints_command(reader, calibrated)

for name, item in current_vertices_positions.items():
    new_vertices_positions = get_mesh_vertex_positions_from_scene(name)
    if new_vertices_positions:
        run_vertices_command(
            calibrated, item["positions"], new_vertices_positions, item["mesh_index"]
        )
save_dna(calibrated)
assemble_maya_scene()

Only bone translation is wiritten into dna file, the changes of blendshape and head_lod0_mesh has been reset in maya. Also, I can't see my changes except bone translate after loading dna files into UE.
Sometimes the step4 will report an error:
TypeError: file <maya console> line 73: MSelectionList.getDagPath() takes exactly one argument (2 given)

Are there any video tutorials? Maybe I am not so familiar with Maya. Thank you very much for helping me.

There is a same problem in UE Forums: Metahuman DNA Calib Library Export Import Issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions