0
$\begingroup$

I have a collection called "A" with some objects in it. Now I'm trying to make the objects in A randomly distribute follow a curve "C". I'm trying to use geometry node "instance on points", the instance is the collection objects, and the points is randomly generated by "Set Position" node. Now I want to get each position of the points, because I want to get the bounding box of each object, is it possible to realize it using python?

$\endgroup$
7
  • $\begingroup$ What do you mean by "get each position" in this context? Get the numbers written down somewhere so they are readable or can be saved in a text file or just get them to be used in some calculations or other positions? Also what means "get the bounding box"? Just place a bounding box on the objects or have bounding boxes as separate objects or get their dimensions written down somehow? $\endgroup$ Commented May 27 at 11:37
  • $\begingroup$ “get each position” means get the position of each points,for example,I have a curve A,and I want to distribute 5 cube along the curve,now I use “sample curve” node and “Set position” node to randomly sample 5 different points as the position of the cube,what I want to get is the coordinates of these 5 points in world coordinate system. $\endgroup$
    – chyaxuing
    Commented May 28 at 6:06
  • $\begingroup$ "get bounding box" means get the 3D range of an object. For example, a cube with size (2,2,2), whose origin is at the center of its geometry. When it is placed at (0,0,0), eight coordinates of its bounding box vertex are (1, 1, 1),(1, 1, -1),(1,-1,1),(1,-1,-1),(-1, 1, 1),(-1, 1, -1),(-1,-1,1),(-1,-1,-1). And when it is placed at (1,0,0), eight coordinates of its bounding box vertex become(2, 1, 1),(2, 1, -1),(2,-1,1),(2,-1,-1),(0, 1, 1),(0, 1, -1),(0,-1,1),(0,-1,-1). So the bounding box is related to both the position of the object and the size go the object. $\endgroup$
    – chyaxuing
    Commented May 28 at 6:26
  • $\begingroup$ I know what a bounding box is and I know what positions are. I was not asking what positions and bounding boxes means, I was asking what "get" in this context means: do you need them to be plugged into somewhere or do you need a readout of the values so that you can display the numbers? $\endgroup$ Commented May 28 at 6:29
  • $\begingroup$ Thank you very much for your attention to my question. Looking forward to your reply! $\endgroup$
    – chyaxuing
    Commented May 28 at 6:30

0

You must log in to answer this question.

Browse other questions tagged .