Page History
...
Code Block | ||
---|---|---|
| ||
var = { "variables": { "position": 40 } } client.set_variables('23ceff24-28fa-47e4-b29f-b6b60b4b12e3', variables=json.dumps(var)) |
Note | ||
---|---|---|
| ||
client.set_variable(<name>, <value>, <simulation_id> (optional), <context> (optional), <propertyPath> (optional)). For example, set_variable(name="mass", value=100, propertyPath = "car.engine") You can also omit parameter names if the parameters are in the correct sequence. For , for example, client.set_variable("mass", 100). |
...