Go to: Synopsis. Return value. MEL examples.

Synopsis

getpid

getpid is NOT undoable, NOT queryable, and NOT editable.

The process identifier of the process which is running Maya is returned as an integer value.

Return value

intProcess Id

MEL examples

$i=`getpid`;
// Result: 20987 //