104 lines
1.5 KiB
JSON
104 lines
1.5 KiB
JSON
{
|
|
"commands": [
|
|
{
|
|
"command": "solid.box",
|
|
"params": {
|
|
"length": 20,
|
|
"width": 20,
|
|
"height": 10,
|
|
"corner": [
|
|
-10,
|
|
-10,
|
|
-10
|
|
],
|
|
"operation": "new",
|
|
"body_name": "BaseBox"
|
|
}
|
|
},
|
|
{
|
|
"command": "component.create",
|
|
"params": {
|
|
"name": "Base",
|
|
"parent": "root",
|
|
"activate": false
|
|
}
|
|
},
|
|
{
|
|
"command": "component.move_bodies",
|
|
"params": {
|
|
"bodies": [
|
|
"BaseBox"
|
|
],
|
|
"component": "Base"
|
|
}
|
|
},
|
|
{
|
|
"command": "occurrence.ground",
|
|
"params": {
|
|
"occurrence": "Base:1",
|
|
"grounded": true
|
|
}
|
|
},
|
|
{
|
|
"command": "component.create",
|
|
"params": {
|
|
"name": "Arm",
|
|
"parent": "root",
|
|
"activate": true
|
|
}
|
|
},
|
|
{
|
|
"command": "solid.box",
|
|
"params": {
|
|
"length": 40,
|
|
"width": 10,
|
|
"height": 10,
|
|
"corner": [
|
|
0,
|
|
-5,
|
|
0
|
|
],
|
|
"operation": "new",
|
|
"body_name": "ArmBox"
|
|
}
|
|
},
|
|
{
|
|
"command": "component.activate",
|
|
"params": {
|
|
"component": "root"
|
|
}
|
|
},
|
|
{
|
|
"command": "component.extract",
|
|
"params": {
|
|
"component": "Arm",
|
|
"path": "$OUT/arm.solidcraft"
|
|
}
|
|
},
|
|
{
|
|
"command": "occurrence.properties",
|
|
"params": {
|
|
"occurrence": "Arm:1"
|
|
}
|
|
},
|
|
{
|
|
"command": "component.insert_design",
|
|
"params": {
|
|
"path": "$OUT/arm.solidcraft",
|
|
"name": "Arm copy",
|
|
"translate": [
|
|
0,
|
|
50,
|
|
0
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"command": "occurrence.properties",
|
|
"params": {
|
|
"occurrence": "Arm copy:1"
|
|
}
|
|
}
|
|
]
|
|
}
|