# bedroom1.yaml

The space you will be generating has two bedrooms and one living room. This is the configuration for one of the bedrooms.

```yaml
[
    {
        "parent": {"name": "wall"},
        "child": {"category": "bed"},
        "settings":{},
        "rules": [
            ["center", {"on_z": true}],
            ["mount", {"parent_side": "left", "child_side":"back", "uv": [0.5, 0], "offset": 0.1}]
        ]
    },

    {
        "parent": {"name": "bed"},
        "child": {"name": "nightstand_left","category": "nightstand"},
        "settings":{},
        "rules": [
            ["center", {"on_z": true}],
            ["align", {"side": "back"}],
            ["neighbour", {"side": "left", "offset": 0.1}]
        ]
    },

    {
        "parent": {"name": "bed"},
        "child": {"name": "nightstand_right", "instance": "nightstand_left"},
        "settings":{},
        "rules": [
            ["center", {"on_z": true}],
            ["align", {"side": "back"}],
            ["neighbour", {"side": "right", "offset": 0.1}]
        ]
    },

    {
        "parent": {"name": "nightstand_left"},
        "child": {"name": "table_lamp_left", "category": "table_lamp"},
        "settings":{},
        "rules": [
            ["put", {"uv": [0.5, 0.5]}]
        ]
    },

    {
        "parent": {"name": "nightstand_right"},
        "child": {"name": "table_lamp_right", "instance": "table_lamp_left"},
        "settings":{},
        "rules": [
            ["put", {"uv": [0.5, 0.5]}]
        ]
    },

    {
        "parent": {"name": "nightstand_left"},
        "child": {"category": "book"},
        "settings":{},
        "rules": [
            ["put", {"uv": [0.5, 0.5], "rotation": [0, 360]}]
        ]
    },

    {
        "parent": {"name": "wall"},
        "child": {"category": "credenza"},
        "settings":{},
        "rules": [
            ["mount", {"parent_side": "right", "child_side": "back", "uv": [0.5, 0], "offset": 0.02}]
        ]
    },

    {
        "parent": {"name": "credenza"},
        "child": {"category": "television"},
        "settings":{"from_folder": "/general/lexset/seahaven3.0/assets/office/television"},
        "rules": [
            ["put", {"uv": [0.5, 0.5], "rotation": 0}]
        ]
    },

    {
        "parent": {"name": "wall"},
        "child": {"category": "armchair"},
        "settings":{},
        "rules": [
            ["rotate", {"degrees": 0}],
            ["mount", {"parent_side": "right", "child_side": "back", "uv": [[0.6, 1], 0], "offset": 0.1}]
        ]
    },

    {
        "parent": {"name": "wall"},
        "child": {"category": "painting"},
        "settings":{"from_folder": "/general/lexset/seahaven3.0/assets/office/painting"},
        "rules": [
            ["center", {}],
            ["mount", {"parent_side": "left", "child_side": "back", "uv": [0.5, 0.5]}]
        ]
    },

    {
        "parent": {"name": "wall"},
        "child": {"category": "curtain"},
        "settings":{"raytrace_mode": "top"},
        "rules": [
            ["center", {"on_z": true}],
            ["mount", {"parent_side": "front", "child_side": "back", "uv": [0.5, 0]}]
        ]
    },

    {
        "parent": {"name": "wall"},
        "child": {"category": "plants"},
        "settings":{"num": [0, 2], "from_folder": "/general/lexset/seahaven3.0/assets/ilife/plants"},
        "rules": [
            ["center", {"on_z": true}],
            ["mount", {"parent_side": "any", "child_side":"back", "uv": [[0, 1], 0], "offset": 0.05}]
        ]
    },
   
]
```
