![]() |
![]() ![]() |
get an object's sequence number
OMobj_id parent_id ,
char * object_name ,
int * seq ,
int mode );
GDget_obj_seq gets an object's sequence number given parent id and the name of the object.
The id of the target object's parent.
The name of the target object.
An output argument set to the target object's sequence number.
How to obtain the sequence number:
1 if successful; 0 if OMget_obj_seq failed.
/* Get the sequence number of a camera object's "from"
subobject. */
OMobj_id mycamera_id; /* Assume this has been set. */
int status;
int seq;
...
status = GDget_obj_seq(mycamera_id, "from", &seq, OM_SEQ_VAL);
if (status == 0)
printf("Error getting the camera's sequence number\n");
![]() |
![]() ![]() |