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)
- Update an agent: updateAgent(aid, properties)
- List agent types: listAgentTypes()
- List agents on scene: listAgentsOnScene()
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)
for(const agt of listAgentTypes() console.log(agt)
for(const agt of listAgentsOnScene() console.log(agt)