0
$\begingroup$

I've built this rather complex way to create a box with tape on it in geometry nodes. This is because I need to create many different boxes according to specific size profiles. The setup works but I have to put in a different seed manually for each box which is plugged into the ID input of the Random node. Otherwise a new random value will be picked for each vertex resulting in a crumpled box.

I want to get rid of the Seed input so a new random box will be created each time. I've tried putting this in a node group and adding a random node to the Seed input but that didn't work either. So how do I get only one random value per box? I'm sure this is easy, and probably a duplicate when you know the answer, but I'm stuck.

This turned out to be a duplicate as I expected. For a different but also elegant solution see this thread: questions/319805/how-do-you-randomly-translate-vertex-groups-for-individual-instances-for-instanc

This is the part with the random values: enter image description here

This is the entire node tree but is illegible so the entire belend file is linked at the bottom. enter image description here

The "crumpled box" enter image description here

Link to the Blend file: https://www.dropbox.com/scl/fi/8hgvdpb7xbhn97pczy0kn/Pakket01.blend?rlkey=b57ww3luox1p7mj4ikzhoywpw&st=2u777ist&dl=0

Using Blender 4.1

$\endgroup$
6
  • $\begingroup$ just use store named attribute on domain "instance" after your instance on points node and plugin any random value you need. $\endgroup$
    – Chris
    Commented Jun 11 at 12:36
  • $\begingroup$ Hi Chris, I'm not sure how to connect that up. Should I instance (on ponts) the entire object, or crate a node group out of this first? and Where does the named attribute go, and what "Name" should I use? $\endgroup$
    – Smitje
    Commented Jun 11 at 12:49
  • $\begingroup$ if u provide your blend file, i can update it. $\endgroup$
    – Chris
    Commented Jun 11 at 12:52
  • $\begingroup$ Thanks Chris, There is a dropbox link in the bottom of the question, please let me know if this doesn't work. $\endgroup$
    – Smitje
    Commented Jun 11 at 12:59
  • $\begingroup$ Judging by the title alone, here's an example of how to do it: How Do You Randomly Translate Vertex Groups for Individual Instances for Instances on Points? $\endgroup$ Commented Jun 11 at 19:18

1 Answer 1

2
$\begingroup$

i hope, that this is what you want?

enter image description here

So i just made a nodegroup out of your package GN setup and used it in a repeat zone, to position each individual package on a grid.

There was no instance on points node in your setup - so i was not sure what you wanted...hope it helps.

$\endgroup$

You must log in to answer this question.

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