2
$\begingroup$

I have a simple setup that uses "Objects from Group" to then do some falloff translations on the group. I need to isolate a specific object in that group to perform an independent translation on it after the falloff translations.

I'm not an expert with AN but after fiddling around with "Loop Through Objects" functionality from the "Objects from Group" node, I have been unable to isolate the object I need from the group using varios "list" and "get" nodes.

Any help would be greatly appreciated.

$\endgroup$
7
  • $\begingroup$ I've solved this by using "Get List Element fed into "Object Transforms Output" in my setup. However this only started working as soon as I added a viewer node (debug) to the Get List Element node to ensure the data was there. I don't have an explanation as to why the setup would kick in to action once a view node was invoked. Strange but I suspect it's some kind of coding glitch. $\endgroup$
    – VFXTobias
    Apr 28, 2018 at 1:03
  • $\begingroup$ This is definitely a bug. Unable to get any consistent behavior on this in 2.79 with AN 2.0.4 (latest production release). It works sometimes then not others. Very unstable. : / $\endgroup$
    – VFXTobias
    Apr 28, 2018 at 1:30
  • $\begingroup$ Can you show us the node tree? Maybe provide the blend file? $\endgroup$
    – Omar Emara
    Apr 28, 2018 at 16:34
  • $\begingroup$ I can't share this particular one since it's a client project but I will build another file to demonstrate. $\endgroup$
    – VFXTobias
    Apr 28, 2018 at 22:00
  • $\begingroup$ Here's a sample file with a mockup showing the intended process. The flow should be fairly straightforward. I've included viewer nodes along the way to show validation that the objects are being fed through until the end. The intended outcome is to be able to independently control the translation of each object in a group before it then gets processed by the next stage of timeline based falloff translations. File: dropbox.com/s/oc6ddd7on54q0c4/AN_XF_Override_Bugs.blend?dl=0 $\endgroup$
    – VFXTobias
    Apr 29, 2018 at 18:17

1 Answer 1

3
$\begingroup$

Let us first simply your node tree into something that is more efficient. Since you are not using matrices and setting the rotation and locations independently, we can use a vectorized Object Transforms Output node to do both. Moreover, since you are only offsetting the location component of the matrices, we can use a vectorized Offset Vector instead. So our node tree reduces to:

Node Tree

If you want to edit the translation of each object independently, you can input the custom translation vectors into the offset input, for instance, we can translate the first and thrid objects in the opposite direction as follows:

Variable Offset

What if you want to animate the rotation? Simply offset zero vectors, convert them to eulers and set them to the objects:

Eulers

Want to implement a non animated offset? Add the offset vectors after the time based falloff offset:

Offset

$\endgroup$
2
  • $\begingroup$ This did the trick. Great thing about AN is that you never run short on learning about nodes hiding under the hood lol. Thank you for your help! $\endgroup$
    – VFXTobias
    Apr 30, 2018 at 20:29
  • 1
    $\begingroup$ @VFXTobias Please accept the answer if it answers your question. $\endgroup$
    – Omar Emara
    May 1, 2018 at 10:51

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .