Operator Reference
set_scene_engine_param (Operator)
set_scene_engine_param
— Sets a parameter of a running Scene Engine instance.
Signature
set_scene_engine_param( : : SceneEngine, GenParamName, 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 parameter names 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 to
run_scene_engine
. It is not possible to change the device of a running Scene Engine instance after the first call torun_scene_engine
.Default: By default, the scene engine uses the first available device (0).
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: []
Suggested values:
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.
Possible Predecessors
open_scene_engine
,
get_scene_engine_param
Possible Successors
run_scene_engine
,
get_scene_engine_param
See also
create_deep_matching_3d
,
get_scene_engine_param
Module
3D Metrology