[ { "note": "Motion study: key a revolute joint and play it (motion.study, motion.play)." }, { "start": "component.create" }, { "key": "Enter" }, { "start": "sketch.create" }, { "click": { "plane": "XY" } }, { "start": "sketch.rectangle.two_point" }, { "click": { "sketch": [ 0, 0 ] } }, { "click": { "sketch": [ 20, 20 ] } }, { "key": "Escape" }, { "start": "sketch.finish" }, { "call": "ui.view", "params": { "view": "iso" } }, { "start": "solid.extrude" }, { "text": "10" }, { "key": "Enter" }, { "call": "ui.menu", "params": { "x": 100, "y": 170, "target": { "type": "component", "id": 0 } } }, { "call": "ui.menuPick", "params": { "item": "Activate" } }, { "start": "component.create" }, { "key": "Enter" }, { "start": "sketch.create" }, { "click": { "plane": "XZ" } }, { "start": "sketch.rectangle.two_point" }, { "click": { "sketch": [ 30, 0 ] } }, { "click": { "sketch": [ 50, 10 ] } }, { "key": "Escape" }, { "start": "sketch.finish" }, { "call": "ui.view", "params": { "view": "iso" } }, { "start": "solid.extrude" }, { "click": { "world": [ 40, 0, 5 ] } }, { "text": "20" }, { "key": "Enter" }, { "start": "joint.create" }, { "click": { "world": [ 10, 10, 10 ] } }, { "click": { "world": [ 40, -20, 5 ] } }, { "widget": "Rigid" }, { "widget": "Revolute" }, { "widget": "OK" }, { "start": "motion.study" }, { "widget": "Add Key" }, { "widget": "0 deg", "near": "Value" }, { "key": "A", "cmd": true }, { "text": "90" }, { "key": "Enter" }, { "widget": "OK" }, { "expect": { "dialog": null, "errors": 0 } }, { "call": "engine.execute", "params": { "command": "motion.play", "params": { "study": 1, "step": 100 } } }, { "expect": { "query": { "command": "joint.list", "path": [ "joints", 0, "values", 0, "value" ], "value": 90 } } }, { "shot": "s24_motion_end" } ]