GetSecondaryElemId

Returns a true or false value that indicates whether the retrieval operation is successful. When the operation is successful, the function puts the ID of the secondary element of the conductance in the current expression call context in the argument.

Calling convention:

bool GetSecondaryElemId(int* val)
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
val int* The ID of the secondary element.

For the example, see the GetAreaBC method.