Skip to content

get_handle_objectGetHandleObjectGetHandleObjectget_handle_objectT_get_handle_object🔗

Short description🔗

get_handle_objectGetHandleObjectGetHandleObjectget_handle_objectT_get_handle_object — Retrieve an object associated with a key from a handle.

Signature🔗

get_handle_object( out object Object, handle Handle, string Key )void GetHandleObject( HObject* Object, const HTuple& Handle, const HTuple& Key )static void HOperatorSet.GetHandleObject( out HObject objectVal, HTuple handle, HTuple key )def get_handle_object( handle: HHandle, key: Union[str, int] ) -> HObject

Herror T_get_handle_object( Hobject* Object, const Htuple Handle, const Htuple Key )

Description🔗

get_handle_objectGetHandleObject retrieves an iconic object associated with the Keykeykey from Handlehandlehandle and returns it in ObjectobjectValobject. The list of keys supported by a handle can be queried with get_handle_paramGetHandleParam.

Note that this operator is provided only for implementing generic debug and inspection mechanisms. The keys returned for certain handle types can change without notice. Additionally, some handle types might not be supported by this operator. Also, this operator is not optimized for performance. To obtain more reliable information about a handle in a program, it is strongly recommended to use the operators specialized for the particular handle type, such as get_object_model_3d_paramsGetObjectModel3dParams, get_generic_shape_model_paramGetGenericShapeModelParam etc.

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🔗

ObjectobjectValobject (output_object) object(-array) → objectHObjectHObjectHObjectHobject *

Iconic value of the key.

Handlehandlehandle (input_control) handle → (handle)HTuple (HHandle)HHandle, HTuple (IntPtr)HHandleHtuple (handle)

Handle of which to get the key.

Keykeykey (input_control) string → (string / integer)HTuple (HString / Hlong)HTuple (string / int / long)Union[str, int]Htuple (char* / Hlong)

Key to get.

Result🔗

If the parameters are valid, the operator get_handle_objectGetHandleObject returns the value 2 (H_MSG_TRUE). Otherwise, an exception is raised.

Combinations with other operators🔗

Combinations

Alternatives

get_handle_tupleGetHandleTuple

See also

get_handle_paramGetHandleParam

Module🔗

Foundation