Compound Library Lua Commands

Started by Bruno Kestemont

Bruno Kestemont Lv 1

It would be useful to get Lua commands to load Compound Library entries.
My first main use would be: open a compound in the list, make some actions, record some info, open a new compound etc.

Something like:

table libray.GetCompounds() returns a table containing the names of all available compounds in the currently open library.
(needs a library to be selected and open on screen, otherwise, it returns an empty table)

bool libray.LoadCompoundByName(string name)

Additional commands might be useful:

table libray.GetData(string name)
I don't know if there are data on each proposed Compound of a Library (neither i would be able to use this information, but I suppose that biochemists players might use the info on each Compound in order to select compounds to test on purpose).

void libray.LoadCompound(solution)