qtm.settings.processing._6d
Access and modify 6dof processing settings.
import qtm
print(qtm.settings.processing._6d.get_body_count("measurement"))
# 3
body_index = 2
print(qtm.settings.processing._6d.get_body_name("measurement", body_index))
# L_Frame
print(qtm.settings.processing._6d.get_point_count("measurement", body_index))
# 4
point_index = 0
print(qtm.settings.processing._6d.get_point_name("measurement", body_index, point_index))
# L_Frame - 1
print(qtm.settings.processing._6d.get_point_position("measurement", body_index, point_index))
# [226.46037005049945, 0.6947789149269771, 1.19924822792081]
print(qtm.settings.processing._6d.get_body_count("measurement"))
-- 3
body_index = 2
print(qtm.settings.processing._6d.get_body_name("measurement", body_index))
-- L_Frame
print(qtm.settings.processing._6d.get_point_count("measurement", body_index))
-- 4
point_index = 0
print(qtm.settings.processing._6d.get_point_name("measurement", body_index, point_index))
-- L_Frame - 1
print(qtm.settings.processing._6d.get_point_position("measurement", body_index, point_index))
-- {226.4603700505, 0.69477891492698, 1.1992482279208}
curl --json "[\"measurement\"]" http://localhost:7979/api/scripting/qtm/settings/processing/_6d/get_body_count
:: 3
set body_index=2
curl --json "[\"measurement\", %body_index%]" http://localhost:7979/api/scripting/qtm/settings/processing/_6d/get_body_name
:: "L_Frame"
curl --json "[\"measurement\", %body_index%]" http://localhost:7979/api/scripting/qtm/settings/processing/_6d/get_point_count
:: 4
set point_index=0
curl --json "[\"measurement\", %body_index%, %point_index%]" http://localhost:7979/api/scripting/qtm/settings/processing/_6d/get_point_name
:: "L_Frame - 1"
curl --json "[\"measurement\", %body_index%, %point_index%]" http://localhost:7979/api/scripting/qtm/settings/processing/_6d/get_point_position
:: [226.46037005049945,0.69477891492697708,1.1992482279208101]
get_identify_partial_bodies
Get whether to identify partially visible rigid bodies.
Parameters
source
"project"|"measurement"
The settings source.
Returns
bool
set_identify_partial_bodies
Set whether to identify partially visible rigid bodies.
Parameters
source
"project"|"measurement"
The settings source.
enable
bool
True if partially visible rigid bodies should be identified, otherwise false.
get_calculate_missing_markers
Get whether to calculate missing markers in rigid bodies.
Parameters
source
"project"|"measurement"
The settings source.
Returns
bool
set_calculate_missing_markers
Set whether to calculate missing markers in rigid bodies.
Parameters
source
"project"|"measurement"
The settings source.
enable
bool
True if missing markers should be calculated, otherwise false.
add_body
Add a rigid body.
Parameters
source
"project"|"measurement"
The settings source.
Returns
integer
The index of the added rigid body.
add_point
Add a point to a rigid body.
Parameters
source
"project"|"measurement"
The settings source.
body_index
integer
The index of the rigid body.
Returns
integer
The index of the added point.
delete_body
Delete a rigid body.
Parameters
source
"project"|"measurement"
The settings source.
body_index
integer
The index of the rigid body.
delete_point
Delete a point in a rigid body.
Parameters
source
"project"|"measurement"
The settings source.
body_index
integer
The index of the rigid body.
point_index
integer
The index of the point.
get_body_count
Get the number of rigid bodies.
Parameters
source
"project"|"measurement"
The settings source.
Returns
integer
get_point_count
Get the number of points in a rigid body.
Parameters
source
"project"|"measurement"
The settings source.
body_index
integer
The index of the rigid body.
Returns
integer
get_body_name
Get the name of a rigid body.
Parameters
source
"project"|"measurement"
The settings source.
body_index
integer
The index of the rigid body.
Returns
string
set_body_name
Set the name of a rigid body.
Parameters
source
"project"|"measurement"
The settings source.
body_index
integer
The index of the rigid body.
name
string
The name of the rigid body.
get_body_color
Get the color of a rigid body.
Parameters
source
"project"|"measurement"
The settings source.
body_index
integer
The index of the rigid body.
Returns
integer
The color of the rigid body (in 0xbbggrr format).
set_body_color
Set the color of a rigid body.
Parameters
source
"project"|"measurement"
The settings source.
body_index
integer
The index of the rigid body.
color
integer
The color of the rigid body (in 0xbbggrr format, see 'qtm.utilities.color' module).
get_body_coordinate_system
Get the coordinate system of a rigid body.
Parameters
source
"project"|"measurement"
The settings source.
body_index
integer
The index of the rigid body.
Returns
{"type": "global"|"relative"|"fixed", "relative_body_index": integer?, "fixed_transform": mat4x4f?}
set_body_coordinate_system
Set the coordinate system of a rigid body.
Parameters
source
"project"|"measurement"
The settings source.
body_index
integer
The index of the rigid body.
coordinate_system
{"type": "global"|"relative"|"fixed", "relative_body_index": integer?, "fixed_transform": mat4x4f?}
The coordinate system of the rigid body.
get_body_min_marker_count
Get the minimum marker count of a rigid body.
Parameters
source
"project"|"measurement"
The settings source.
body_index
integer
The index of the rigid body.
Returns
integer
set_body_min_marker_count
Set the minimum marker count of a rigid body.
Parameters
source
"project"|"measurement"
The settings source.
body_index
integer
The index of the rigid body.
count
integer
The minimum marker count of the rigid body (must be greater than or equal to 3).
get_body_max_residual
Get the maximum residual of a rigid body.
Parameters
source
"project"|"measurement"
The settings source.
body_index
integer
The index of the rigid body.
Returns
float
The maximum residual of the rigid body (in millimeters).
set_body_max_residual
Set the maximum residual of a rigid body.
Parameters
source
"project"|"measurement"
The settings source.
body_index
integer
The index of the rigid body.
residual
float
The maximum residual of the rigid body (in millimeters). Must be within the [0.01, 100.0] range.
get_body_bone_length_tolerance
Get the bone length tolerance of a rigid body.
Parameters
source
"project"|"measurement"
The settings source.
body_index
integer
The index of the rigid body.
Returns
float
The bone length tolerance (in millimeters).
set_body_bone_length_tolerance
Set the bone length tolerance of a rigid body.
Parameters
source
"project"|"measurement"
The settings source.
body_index
integer
The index of the rigid body.
tolerance
float
The bone length tolerance (in millimeters). Must be within the [0.01, 1000.0] range.
get_point_name
Get the name of a point in a rigid body.
Parameters
source
"project"|"measurement"
The settings source.
body_index
integer
The index of the rigid body.
point_index
integer
The index of the point.
Returns
string
set_point_name
Set the name of a point in a rigid body.
Parameters
source
"project"|"measurement"
The settings source.
body_index
integer
The index of the rigid body.
point_index
integer
The index of the point.
name
string
The name of the point.
get_point_position
Get the position of a point in a rigid body.
Parameters
source
"project"|"measurement"
The settings source.
body_index
integer
The index of the rigid body.
point_index
integer
The index of the point.
Returns
vec3f
set_point_position
Set the position of a point in a rigid body.
Parameters
source
"project"|"measurement"
The settings source.
body_index
integer
The index of the rigid body.
point_index
integer
The index of the point.
position
vec3f
The position of the point.
get_point_is_virtual
Get whether a point in a rigid body is virtual.
Parameters
source
"project"|"measurement"
The settings source.
body_index
integer
The index of the rigid body.
point_index
integer
The index of the point.
Returns
bool
set_point_is_virtual
Set whether a point in a rigid body is virtual.
Parameters
source
"project"|"measurement"
The settings source.
body_index
integer
The index of the rigid body.
point_index
integer
The index of the point.
is_virtual
bool
True if the point is virtual, otherwise false.
get_point_active_marker_id
Get the (sequence coded) active marker identifier of a point in a rigid body.
Parameters
source
"project"|"measurement"
The settings source.
body_index
integer
The index of the rigid body.
point_index
integer
The index of the point.
Returns
integer?
The active marker identifier of the point (or null, if the marker is passive).
set_point_active_marker_id
Set the (sequence coded) active marker identifier of a point in a rigid body.
Parameters
source
"project"|"measurement"
The settings source.
body_index
integer
The index of the rigid body.
point_index
integer
The index of the point.
id
integer?
The active marker identifier of the point (if null, the marker will be regarded as passive).
load_bodies
Load rigid bodies from an xml file.
This will overwrite any existing rigid bodies.
Parameters
source
"project"|"measurement"
The settings source.
filename
string
The xml filename to load.
save_bodies
Save rigid bodies to an xml file.
Parameters
source
"project"|"measurement"
The settings source.
filename
string
The xml filename to save.
help
Get the documentation for a module or method.
Parameters
method
string?
The name of the method (if null, the documentation for the module will be returned instead).
Returns
string