add_person#

Modeler3D.add_person(input_dir, speed=0.0, global_offset=[0, 0, 0], yaw=0, pitch=0, roll=0, coordinate_system=None, name=None)#

Add a Walking Person Multipart from 3D Components.

It requires a json file in the folder containing person infos. An example json file follows:

{
    "name": "person3",
    "version": 1,
    "class":"person",
    "stride":"0.76meter",
    "xlim":["-.43",".43"],
    "ylim":["-.25",".25"],
    "parts": {
        "arm_left": {
            "comp_name": "arm_left.a3dcomp",
            "rotation_cs":["-.04","0","1.37"],
            "rotation":"-30deg",
            "compensation_angle":"-15deg",
            "rotation_axis":"Y"
            },
        "arm_right": {
            "comp_name": "arm_right.a3dcomp",
            "rotation_cs":["0","0","1.37"],
            "rotation":"30deg",
            "compensation_angle":"30deg",
            "rotation_axis":"Y"
            },
        "leg_left": {
            "comp_name": "leg_left.a3dcomp",
            "rotation_cs":["0","0",".9"],
            "rotation":"20deg",
            "compensation_angle":"22.5deg",
            "rotation_axis":"Y"
            },
        "leg_right": {
            "comp_name": "leg_right.a3dcomp",
            "rotation_cs":["-.04","0",".9375"],
            "rotation":"-20deg",
            "compensation_angle":"-22.5deg",
            "rotation_axis":"Y"
            },
        "torso": {
            "comp_name": "torso.a3dcomp",
            "rotation_cs":null,
            "rotation":null,
            "compensation_angle":null,
            "rotation_axis":null
            }
    }
}
Parameters:
input_dirstr

Path to the actor folder. It must contain a json settings file and a 3dcomponent (.a3dcomp).

speedfloat, optional

Object movement speed with time (m_per_sec).

global_offsetlist, optional

Offset from Global Coordinate System [x,y,z] in meters.

yawfloat, optional

Yaw Rotation from Global Coordinate System in deg.

pitchfloat, optional

Pitch Rotation from Global Coordinate System in deg.

rollfloat, optional

Roll Rotation from Global Coordinate System in deg.

coordinate_systemstr

Relative CS Name of the actor. None for Global CS.

namestr

If provided, it overrides the actor name in the JSON.

Returns:
ansys.aedt.core.modeler.actors.Person

References

>>> oEditor.Insert3DComponent