Cool VL Viewer forum

View unanswered posts | View active topics It is currently 2024-03-19 09:18:24



Reply to topic  [ 95 posts ]  Go to page Previous  1 ... 6, 7, 8, 9, 10
Lua scripting related requests 
Author Message

Joined: 2011-09-17 11:12:19
Posts: 360
Reply with quote
Oh nice. I thought I looked for that but must not have been thorough enough. Thank you.


2020-07-31 20:10:18
Profile

Joined: 2012-01-19 03:18:40
Posts: 196
Location: Sydney, Australia (UTC +10)
Reply with quote
I have been experimenting with "projector" lighting in Second Life to permit more realistic headlights on vehicles etc. The problem is that light settings that look great in ALM look horrible when ALM is turned off, so I'd like to write a function that tests whether ALM is turned on in my viewer. LSL doesn't seem to offer any way to do this so I've been looking into Lua. Unfortunately when I looked up GetDebugSetting(), the manual says:
Code:
This function always fails (and returns nil) if invoked from a Lua command line sent by a scripted object or, for Linux, via D-Bus.
Am I right in thinking this would preclude using this function from within an LSL script in a vehicle, helmet etc.?


2023-03-11 12:08:13
Profile

Joined: 2009-03-17 18:42:51
Posts: 5523
Reply with quote
linyifei wrote:
Am I right in thinking this would preclude using this function from within an LSL script in a vehicle, helmet etc.?
No, you are wrong...

Simply use an AutomationRequest() from your script, and an OnAutomationRequest() callback in your automation.lua script, with a convention of yours (e.g. your script could request "is_alm", and your callback could return a string, such as "yes" or "no" as a reply).


2023-03-11 13:19:24
Profile WWW

Joined: 2023-12-06 04:01:30
Posts: 5
Reply with quote
Hi! Adding a function that allows inventory items/folders to be moved from one folder to another would be extremely useful.


2023-12-07 18:02:36
Profile

Joined: 2009-03-17 18:42:51
Posts: 5523
Reply with quote
stuffstuffstuff wrote:
Hi! Adding a function that allows inventory items/folders to be moved from one folder to another would be extremely useful.
"MoveToInventoryFolder()" implemented for next release.

Note: "stuffstuffstuff" is rather poor a name for a forum user name. Please consider making an account with a meaningful name...


2023-12-07 23:11:14
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 95 posts ]  Go to page Previous  1 ... 6, 7, 8, 9, 10

Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.