Datablock APIΒΆ

editor.createDataBlock(datablockInfo)
Parameters:datablockInfo –

the datablock information table, with the fields:

  • wip - wip

Create a datablock with information from the

editor.deleteDataBlock(name)
Parameters:name – the name of the datablock

Delete a datablock by its name.

editor.getDataBlocks()
Returns:the datablock objects array
editor.findDataBlock(name)
Parameters:name – the name of the datablock
Returns:the datablock object by its name, or nil if none found