I want to get a different a seed for a point distribution that is unique for each object.
As a minimal working example, i want to each square to have a different point distribution:
But I don’t know what can I put on the Seed input
When i need something similar for a shader I use the Random attribute from the Object info node.
Random value gives a “input expects single” value error, which is reasonable.
I ended up using a script that sets a random input value per object, which I don’t like for many reasons.
import bpy;
import random;
for obj in bpy.data.collections['Collection'].all_objects:
if obj.name.startswith("Plane"):
obj.modifiers["GeometryNodes"].properties.inputs.Socket_2.value = int(random.random()*1000)
#update the modifiers
bpy.context.evaluated_depsgraph_get().update()
Here is the file in anyone needs it
randomseed.blend (111.9 KB)
These are the closest solutions I have found inside the node editor:
https://blenderartists.org/t/random-values-geometry-nodes/1583621
I would still prefer to get something more straightforward that uses less nodes. I can’t find a way to access an object custom property, which would be a better solution for me.
Setting the same value for a mesh attribute with the same value doesn’t work either, as the seed only works with a single value.
Is there something I’m missing? I’m actually considering on implementing this into blender, but I wanted to get sure this is not doable before talking to the dev community.



