Get the state machine at a given 0-based index in the artboard.
If the state machine does not exist.
Get the state machine with a given name in the artboard.