set_scene_engine_param🔗
Short description🔗
set_scene_engine_param — Set parameters of a running Scene Engine instance.
Signature🔗
set_scene_engine_param( scene_engine SceneEngine, attribute.name GenParamName, attribute.value GenParamValue )
Description🔗
The operator set_scene_engine_param sets a parameter
of the running Scene Engine instance SceneEngine.
The parameter name is specified in GenParamName, the
corresponding value in GenParamValue.
The following parameters are supported:
-
'asset_path': A string containing the path of the asset library. See
open_scene_enginefor a description of the assets. When starting a new Scene Engine, the path is by default set to the value of the environment variable HALCON_ASSET_DIR.Default: The value of the environment variable HALCON_ASSET_DIR
-
'select_device_idx': An integer that selects the device (GPU) to be used for rendering data during the data generation. The index is the entry in the list returned by
get_scene_engine_paramwith parameter 'devices'.Note that the device must be selected before the first call of
run_scene_engine. It is not possible to change the device of a running Scene Engine instance after the first call ofrun_scene_engine.Default: 0
Execution information🔗
Execution information
-
Multithreading type: reentrant (runs in parallel with non-exclusive operators).
-
Multithreading scope: global (may be called from any thread).
-
Processed without parallelization.
Parameters🔗
SceneEngine (input_control) scene_engine → (handle)
Handle of the Scene Engine connection.
GenParamName (input_control) attribute.name → (string)
Names of parameters.
Default: 'asset_path'
Suggested values: 'asset_path', 'select_device_idx'
GenParamValue (input_control) attribute.value(-array) → (string / real / integer / handle)
Values of parameters.
Default: []
Result🔗
If the parameters are valid, the operator set_scene_engine_param
returns the value 2 (H_MSG_TRUE). If necessary, an exception is raised.
Combinations with other operators🔗
Combinations
Possible predecessors
open_scene_engine, get_scene_engine_param
Possible successors
run_scene_engine, get_scene_engine_param
See also
Module🔗
3D Metrology