← Blender.Today
  • Published 8 Jan 2024

Geometry nodes and command Line Arguments

Is it possible to pass argument value directly to the geometry nodes?

I need to run blender from command line and render out the image but I need to pass the values into geometry nodes group input. And then use some bpy code to read the argument and pass that to the correct group input.

For example:

try:
    args = list(reversed(sys.argv))
    idx = args.index("--")

except ValueError:
    params = []
else:
    params = args[:idx][::-1]

object_L = params[0]
object_M = params[1]
object_R = params[2]
...

2024-01-08 06_48_23.jpg

Cheers!
dejan1
8 Jan 2024