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:

instead of

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


1 Like

You can use it like this.
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!