diff --git a/infinigen/__init__.py b/infinigen/__init__.py index c6a810828..dc66c1798 100644 --- a/infinigen/__init__.py +++ b/infinigen/__init__.py @@ -6,7 +6,7 @@ import logging from pathlib import Path -__version__ = "1.6.0-dev" +__version__ = "1.6.1" def repo_root(): diff --git a/infinigen/core/nodes/node_wrangler.py b/infinigen/core/nodes/node_wrangler.py index 55eaefd4d..34d08bf32 100644 --- a/infinigen/core/nodes/node_wrangler.py +++ b/infinigen/core/nodes/node_wrangler.py @@ -196,8 +196,12 @@ def new_node( node.name = label if attrs is not None: - for key, val in attrs.items(): - setattr(node, key, val) + for key_path, val in attrs.items(): + keys = key_path.split(".") + obj = node + for key in keys[:-1]: + obj = getattr(obj, key) + setattr(obj, keys[-1], val) if node_type in [ Nodes.VoronoiTexture,