How do you get Geometry Node values into the Group Input node field?

Hi,

It’s been a while since coming here but I hope someone can help with this issue. I’m using Blender 4.5.8 LTS and I have a specific geometry node setup that I am satisfied with except for one thing. As you can see, I have a Group Input node with Integer slot set to min and max values. I want to dynamically change the Max value of the slot based on the number of objects that I have in my collection set up using the Collection Info node. The problem is that I don’t know how to take the value of the node and hook it into the Max value field in the Group Input node since there are no input slots for the node.

Does anyone know how to get the dynamic value into the Max value field? If so, can you provide a quick rough guide to do this?

I’m assuming that this could be achieved using a driver, perhaps, but I would not know how to do this if it were possible.

Thanks in advance for any help regarding this.

Cheers,
Paul
(mix_mash)

You create the group inputs yourself by dragging the blank node output to the input of a node you want to control. If you want to control something with a node from another node group then you need to plug it into it’s group output which will then show up in the group output when you collapse it’s group. Basically in your image, the Object No is a variable you created, it is not the output from the min max node.

Ah, that’s not possible.

You can however clamp or wrap the input integer so that it never returns an invalid index.

OK, I am just trying to automate the process so that when you add new objects to the collection that the Max value in the Input node gets automatically updated, rather than having to manually input the number. I need to use the Group Input node so that I can have a slider visible in the object properties/Geo Node modifier. I just need to know if, perhaps, the results of a node tree can actually be linked to a driver or not.

Please let me know if this is 100% possible or not. Any workaround would be good also.

Oh, or can I use a different node instead of the Group Input node which would allow me to get an interactive slider in the object properties or Geo Node modifier?

I appreciate your feedback on this.

Cheers,

Paul

(mix_mash)

I understand. To facilitate the process, you could use a Warning (Info) node connected to a Collection Children node and a List Length node, so that the number of objects is reported directly in the modifier interface.

But min_value and max_value are fixed, they don’t accept drivers

I am pretty sure you can not use a driver from anything calculated in GN. You can use drivers in GN but only when the value exists before node calculations (like a value in a “value” node or an input value) not values outputted that have been calculated in the node tree.

Stored attributes are tied to geometry or instances in some way and can not be used directly as drivers either as far as I know.

99% not possible.

Well, that’s a real shame. It’s not a big issue but it would have been cool to have things automatic rather than manual in this case.

I appreciate everyone’s input in regarding this even if it didn’t work out in the end.

Thanks to you all.

Cheers,

Paul

(mix_mash)