3
$\begingroup$

Is it possible in Blender 3.3 to name each Geometry Nodes modifier name to be the same as the name of node tree attached to this modifier?

Of course, it can be done manually, but for projects with a lot of objects, node trees and Geometry Nodes modifiers, it would be much better to do it via python, change settings or other more automated solution.

This is especially useful for objects with a lot of modifiers. Thanks to this solution, having the modifier window collapsed, you can see what node tree was attached to the Geometry Nodes modifier.

Thanks alot in advance, if something is unclear, i can provide more info or pictures.

enter image description here

$\endgroup$
2
  • $\begingroup$ To the best of my knowledge, there is no automatic solution to do this. The only way to get this done would be a python-based enhancement. $\endgroup$
    – WolfiG
    Commented Oct 28, 2022 at 7:29
  • $\begingroup$ Thank for comment. It is a pity that there is no such option in the settings :c $\endgroup$
    – Xostyrka
    Commented Oct 28, 2022 at 8:26

1 Answer 1

3
$\begingroup$

you could try this python script:

import bpy

for o in bpy.data.objects:
    for mod in o.modifiers:
        if mod.type == "NODES":
            mod.name = mod.node_group.name
            
$\endgroup$
2
  • $\begingroup$ This script works great, thanks a lot! $\endgroup$
    – Xostyrka
    Commented Oct 28, 2022 at 8:27
  • $\begingroup$ you are welcome $\endgroup$
    – Chris
    Commented Oct 28, 2022 at 8:29

You must log in to answer this question.

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