Javascript Keyframe console
Use any combination of Javascript and API calls to update your keyframe scene.
Special commands:
"\help" for help & API
"\clear" to clear results

# API:

- Log here: log() - any number of arguments of any type
- Create an agent: createAgent(type, properties) - Promise returning the AID
- Remove an agent: removeAgent(aid) - Promise
- Update an agent: updateAgent(aid, properties) - Promise
- Toggle selection of an agent: selectAgent(aid) - Promise
- List agent types: listAgentTypes() - Promise
- List agents on scene: listAgentsOnScene() - Promise

const agtIds = [] for(let i=0; i<360; i+=22.5){ agtIds.push( await createAgent(1, { position: { x: 10*Math.sin(i*Math.PI/180), y: 10*Math.cos(i*Math.PI/180), z: 0 } } ) ) } log(agtIds)
await removeAgent('00000000-aaaa-bbbb-cccc-dddddddddddd')
await selectAgent('00000000-aaaa-bbbb-cccc-dddddddddddd')
for(const agt of await listAgentTypes()) { log(agt.atp_id+':'+agt.atp_name)
const agts = await listAgentsOnScene() for(const aid in agts){ log(`${aid}:${JSON.stringify(agts[aid])}`,'----------') }