Joint Indexing by Type

Is there a way to index joints by type instead of by number? For example, I’d like to be able to do something like:
joints[Head]

instead of
joints[0]

On a related note, are the joints guaranteed to always be in the same order (is joints[0] always Head)?

Thanks.

1 Like

You can use it like this.
joints[(int)Astra.JointType.Head]
And joints array is always same order :slight_smile:

1 Like

Ah, perfect. It occurred to me last night there must be some sort of solution like that. Thanks very much!