- Posts: 11
- Joined: Wed Jun 28, 2017 2:25 pm
Hi,
Similair to a topic relating to Python viewtopic.php?f=21&t=79200 , I couldn't find equivalent info for Lua, so
BM scripting documentation states that:
...resolve object... can be inspected for further scriptable properties - using table iteration and "getmetatable" in Lua... each object is inspectable for properties and functions...
so I understand this is what is implied:
however that returns a table like this:
What would be the correct syntax to explore the objects for usable propetries and functions?
Similair to a topic relating to Python viewtopic.php?f=21&t=79200 , I couldn't find equivalent info for Lua, so
BM scripting documentation states that:
...resolve object... can be inspected for further scriptable properties - using table iteration and "getmetatable" in Lua... each object is inspectable for properties and functions...
so I understand this is what is implied:
- Code: Select all
resolve = Resolve()
for key,value in pairs(getmetatable(resolve)) do
print(key, " ", value)
end
however that returns a table like this:
- __call function: 0x01d65e6de4b8
__add function: 0x01d65e6de730
__sub function: 0x01d65e6de768
__mul function: 0x01d65e6de630
__div function: 0x01d65e6de668
__pow function: 0x01d65e6de6a0
__unm function: 0x01d65e6de928
__tostring function: 0x01d65e6de558
_typename function: 0x01d65e6de480
_istypeof function: 0x01d65e6de520
__index function: 0x01d65e6de590
__newindex function: 0x01d65e6de6f8
__gc function: 0x01d65e6de5f8
__eq function: 0x01d65e6de960
__lt function: 0x01d65e6de998
__le function: 0x01d65e6de9d0
__concat function: 0x01d65e6dea08
What would be the correct syntax to explore the objects for usable propetries and functions?