set_scene_engine_param — Set parameters of a running Scene Engine instance.
set_scene_engine_param( : : SceneEngine, GenParamName, GenParamValue : )
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_engine for 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_param with 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 of
run_scene_engine.
Default: 0
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: []
Suggested values:
If the parameters are valid, the operator set_scene_engine_param
returns the value 2 (
H_MSG_TRUE)
. If necessary, an exception is raised.
open_scene_engine,
get_scene_engine_param
run_scene_engine,
get_scene_engine_param
create_deep_matching_3d,
get_scene_engine_param
3D Metrology