summaryrefslogtreecommitdiff
path: root/indra/newview/scripts
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2024-09-03 13:13:22 -0400
committerNat Goodspeed <nat@lindenlab.com>2024-09-03 13:13:22 -0400
commit83eace32cfccc672e7a5a2841bd7d844dce0ea3e (patch)
treeb8121f72b9710b3ebd991730094996a843b88417 /indra/newview/scripts
parent93c21b503abdf4f9530064f8c3f1df7ea0dc244f (diff)
Iterate to print landmarks returned by LLInventory.
At this point, inspect(landmarks) just returns "<userdata 1>".
Diffstat (limited to 'indra/newview/scripts')
-rw-r--r--indra/newview/scripts/lua/test_LLInventory.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/indra/newview/scripts/lua/test_LLInventory.lua b/indra/newview/scripts/lua/test_LLInventory.lua
index 107b0791d4..918ca56a2e 100644
--- a/indra/newview/scripts/lua/test_LLInventory.lua
+++ b/indra/newview/scripts/lua/test_LLInventory.lua
@@ -5,7 +5,9 @@ LLInventory = require 'LLInventory'
my_landmarks_id = LLInventory.getBasicFolderID('landmark')
-- Get 3 landmarks from the 'My Landmarks' folder (you can see all folder types via LLInventory.getAssetTypeNames())
landmarks = LLInventory.collectDescendentsIf{folder_id=my_landmarks_id, type="landmark", limit=3}
-print(inspect(landmarks))
+for _, landmark in pairs(landmarks.items) do
+ print(landmark.name)
+end
-- Get 'Calling Cards' folder id
calling_cards_id = LLInventory.getBasicFolderID('callcard')