0
$\begingroup$

I run Animation Nodes to drive shapes on a rig with bones - such a better solution to Drivers.

But currently the shape Group list I use to select that particular object (needed for updating the rig and keeping the group relatively dynamic)gets the object list order mixed up sometimes.

Why does this happen? Is there a way to sort the group object list order with Animation nodes?

$\endgroup$
  • $\begingroup$ How do you want to order them? based on what I mean? $\endgroup$ – Omar Emara Sep 2 '17 at 8:04
  • $\begingroup$ I guess I'm looking for a fixed indice. For example Object A is Indice 1, Object B is Indice 2, and so forth. Currently getting the AN group list the Object A and Object B order changes randomly before I can get the correct indice. $\endgroup$ – Draise Sep 8 '17 at 17:44
1
$\begingroup$

If you have a list of object [Object B, Object A, Object E, Object C, Object D] and you wish to order them as [Object A, Object B, Object C, Object D, Object E], simply construct a list such that its elements are that of the list at the indices [1, 0, 3, 4, 2].

Node Tree

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.