0
$\begingroup$

I'm trying to exempt a couple of objects from being colored by an 'empty' which is coloring the cube matrix based on the distance.

In the image there are 2 empties: one is coloring the cubes blue, the orther coloring them red and offseting by X. enter image description here

What could I do if I wanted those 3 selected cubes, not to be colored by the 'empty' object? For coloring method I used roughly similar method as in here: Color objects based on distance in Animation Nodes

$\endgroup$
1
$\begingroup$

You can use the List Boolean Operations node to removed the selected objects from your object list as follows:

Node Tree

$\endgroup$
  • $\begingroup$ Hey, Omar, Thank you for suggestion. I understood what boolean does. But I think I lack something more. Maybe I did not explained my problem to the foolest. cdn.discordapp.com/attachments/194901346183413761/… In my case I need to work with object group and I'm kind of confused how to linke whats was cut out from the main group. $\endgroup$ – Julius Ra Nov 22 '18 at 19:38
  • $\begingroup$ @JuliusRa Use the output of the boolean node as your loop input. That way, the required objects will be excluded from the coloring. $\endgroup$ – Omar Ahmad Nov 22 '18 at 20:24
  • $\begingroup$ I tried it.. The excluded cubes loose their position.. media.discordapp.net/attachments/194901346183413761/… Thats is why I think thought way is not an option and tried to look for a way to detour the loop somehow.. But I guess it is not that simple $\endgroup$ – Julius Ra Nov 22 '18 at 20:47
  • $\begingroup$ @JuliusRa Make two separate loops, one for colors with the new list and one for transformation with the original list. Makes sense? $\endgroup$ – Omar Ahmad Nov 22 '18 at 21:07
  • $\begingroup$ Well.. hmm it works.. Kinda.. :) cdn.discordapp.com/attachments/195644373336195072/… But somehow it glitches from time to time.. especially if I copy loop node, not create it from scratch.. need to ponder more around this.. Anyway thanks.. I'll keep this question open.. and check If I find a more optimised solution.. I still want to find some way to influence the cubes maybe through shaders/vertex colors.. so that I could make changes inside the same loop. $\endgroup$ – Julius Ra Nov 22 '18 at 22:08

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.