# How to get location of origin of all objects in selection useing geometry nodes. 3.0

So what I am trying to do is displace an array of points based on location of another object. The nodes work well, when I "call" each object seperatly using "Object info node". But I need to "call" a lot of objects and the nodes are starting to look unorganized.

(working nodes) I start by generating a point grid, the displace points node is basically just math that uses x,y values of the point array and X,Y location of the object to offset the z component of point grid. Then i use instance on points to generate a grid of cubes on which i apply a material.

I get this result.

(doesn't work) So I want to replace the repetition by using a "collection info node", but cant seem to make it work. (The objects in collection are all single vertex objects to make it simpler). Essentially I want to iterate over each object in selection and apply the linear transformation "displace points node". I manged to make it work using transfer attribute using index mode, but it only applys the transformation for that index. If I use nearest values don't overlap correctly.

• It would be possible to reference a collection, but it wouldn't simplify your nodes whatsoever. Think about it: you'd still need to specify which bit of the collection you wanted for that particular node group input. And you're using a single node for that right now, Object Info. You're not going to make anything that specifies which bit of a collection to use that takes fewer than one node. Feb 2 at 22:20
• So there is no way to apply transformation for each instance in collection, without copy pasting the "displace points node". There is no way for me to iterate over an array of vectors, that are used as a math input to get the displacement for each input vector and than just summate over each iteration? Feb 2 at 23:38
• Do you just want to summate? You can do that: instance the points as a collection, use attribute statistic node to get the sum of their positions. Do you want to do some specific thing with/to each point in the collection? Then you need some way to identify each specific point, and connect it to the specific thing you want to do with it. Feb 2 at 23:46