Page History
...
Code Block | ||
---|---|---|
| ||
var = { "variables": { "position": 40 } } client.set_variables('23ceff24-28fa-47e4-b29f-b6b60b4b12e3', variables=json.dumps(var)) |
Note | ||
---|---|---|
| ||
A simplified Set Simulation Variable method can be used when setting a single value, which does not require constructing a JSON.
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 example, client.set_variable("mass", 100). |
Pause simulation
Panel | ||||||
---|---|---|---|---|---|---|
| ||||||
client.pause(<simulation_id>) |
...