Placement Rules

Placement rules are defined by a series of "parent" and "child" relationships.

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

The names refer to category names within the Lexset database. You can assign a category a unique name so that you can define many different rules that might apply to the same category in different contexts. You can see an example of this here.

"child": {"name": "nightstand_left","category": "nightstand"}

Last updated