blob: c31cfe3c676640d691167182ef6b6566dec8da96 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
local LLInventory = require 'LLInventory'
local inspect = require 'inspect'
print('basic folders:')
print(inspect(LLInventory.getFolderTypeNames()))
local folder = LLInventory.getBasicFolderID('my_otfts')
print(`folder = {folder}`)
local result = LLInventory.getDirectDescendants(folder)
print(`type(result) = {type(result)}`)
print(#result.categories, 'categories:')
for i, cat in pairs(result.categories) do
print(`{i}: {cat.name}`)
end
print(#result.items, 'items')
for i, item in pairs(result.items) do
print(`{i}: {item.name}`)
end
|