HumanGeom Functions¶
This group of functions is available for interacting with a HumanGeom through the API.
|
Pose a HumanGeom in one of its preset postures, as the Set button of its Pose tab does. |
Details¶
- openvsp.SetHumanPresetPose(geom_id, preset)[source]¶
Pose a HumanGeom in one of its preset postures, as the Set button of its Pose tab does. The preset sets R/L Sym and every pose angle (the joint angles of the torso, head and both sides); the pose method, its settings and the body’s size are kept. Call Update afterward.
Each pose angle is a Parm of the “Pose” group (e.g. “HipFERt”), so a preset can be adjusted afterward, or a posture made from scratch, with SetParmVal.
human_id = AddGeom( "HUMAN", "" ) SetHumanPresetPose( human_id, HUMAN_PRESET_SITTING ) Update() assert GetParmVal( human_id, "HipFERt", "Pose" ) == 80.0, "SetHumanPresetPose did not seat the Human"
See also: HUMAN_PRESET_POSE :param [in]: geom_id string HumanGeom Geom ID :param [in]: preset int Preset posture enum (i.e. HUMAN_PRESET_STANDING)