diff options
Diffstat (limited to 'docs')
-rw-r--r-- | docs/user_guide/gaze_analysis_pipeline/advanced_topics/scripting.md | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/docs/user_guide/gaze_analysis_pipeline/advanced_topics/scripting.md b/docs/user_guide/gaze_analysis_pipeline/advanced_topics/scripting.md index b888b9e..9c20c7a 100644 --- a/docs/user_guide/gaze_analysis_pipeline/advanced_topics/scripting.md +++ b/docs/user_guide/gaze_analysis_pipeline/advanced_topics/scripting.md @@ -72,7 +72,7 @@ for name, ar_layer in ar_frame.layers.items(): ... # Look ArFrame at a timestamped gaze position - gaze_position, gaze_movement, scan_path_analysis, execution_times, exception, layers_look_data = ar_frame.look(timestamp, gaze_position) + gaze_position, gaze_movement, scan_path_analysis, execution_times, exception, layers = ar_frame.look(timestamp, gaze_position).values() # Check if a gaze movement has been identified if gaze_movement.valid and gaze_movement.finished: @@ -98,9 +98,12 @@ for name, ar_layer in ar_frame.layers.items(): ... # Do something with each ArLayer look data - for layer_name, layer_look_data in layers_look_data.items(): + for layer_name, layer_look_data in layers.items(): - looked_aoi_name, looked_aoi, aoi_scan_path_analysis, layer_execution_times, layer_exception = layer_look_data + gaze_movement, looked_aoi_name, looked_aoi, aoi_scan_path_analysis, layer_execution_times, layer_exception = layer_look_data.values() + + # Do something with gaze movement + ... # Do something with looked AOI name ... |