Mechanim Name of States within State Machines?

Hi all,

I am stuck with a problem regarding Mechanim: I can StringToHash easily all states that are on the toplevel of any layer, e.g.

static int idleState = Animator.StringToHash("Base Layer.Idle");	
static int jumpState = Animator.StringToHash("Base Layer.Jump");
static int someotherState = Animator.StringToHash("Other Layer.SomeState");
...

On “Base Layer” I also have a state machine called “Locomotion” which in turn has states. I would like to reference these states likewise, but something like the following doesn’t seem to work:

static int waveState = Animator.StringToHash("Base Layer.Locomotion.Wave");

Any hints on how I could access the states of the state machine otherwise? Thanks a lot!

Figured it out after trying endless options. It’s

static int waveState = Animator.StringToHash("Locomotion.Wave");

So simply leave away any layer-information. That’s unexpected as you can have sub state machines on any layer.