GetGenericIndex

Returns a true or false value depending on whether the retrieval operation is successful. When the operation is successful, the function returns the number of generic entities and the external label for the given internal generic entity label.

Calling convention:

bool GetGenericIndex(int* intId, int* extId, int *num)
Note:

To access this method, you must use the GetTMGFunction method and include the AdditionalFunctions.h file located in the [installation_path]\tmg\include\maya\expeval_utils folder in the beginning of your source file.

Argument Data type Description
intId int* The internal generic entity label.
extId int* The returned external generic entity label.
num int* The returned number of generic entities present in the model.

For the example, see the GetGeneric method.