LsGetWindlightScene
From OpenSimulator
(Difference between revisions)
m (Altered contents to not use non-existing pages.) |
m (Robot: Cosmetic changes) |
||
Line 33: | Line 33: | ||
== See Also == | == See Also == | ||
=== Functions === | === Functions === | ||
− | *[[lsSetWindlightScene]] | + | * [[lsSetWindlightScene]] |
− | *[[lsSetWindlightSceneTargeted]] | + | * [[lsSetWindlightSceneTargeted]] |
=== Articles === | === Articles === | ||
− | *[[LightShare]] | + | * [[LightShare]] |
− | *[[LightShare Parameters]] | + | * [[LightShare Parameters]] |
== Deep Notes == | == Deep Notes == | ||
=== All Issues === | === All Issues === | ||
− | *http://opensimulator.org/mantis/search.php?project_id=1&search=lsGetWindlightScene&hide_status_id=-2 | + | * http://opensimulator.org/mantis/search.php?project_id=1&search=lsGetWindlightScene&hide_status_id=-2 |
Revision as of 19:34, 3 March 2012
Contents |
lsGetWindlightScene
Function
list lsGetWindlightScene(list rules);
Get a list of the current Windlight settings in the scene
- list rules - a list of the LightShare Parameters to retrieve
An empty rules list will return an empty result list.
Caveats
The list returned by this function cannot be passed directly to lsSetWindlightScene without triggering C# exceptions from the Simulator.
Examples
list rules_to_get = [ WL_WATER_COLOR ]; list settings; default { state_entry() { settings = [[lsGetWindlightScene]](rules_to_get); llOwnerSay("Water color is: "+llList2String(settings,1)); } }
Water color is: <4.000000,38.000000,64.000000>
Notes
Returned rules contain pairs of data in the form of the parameter requested followed by the current value. In the example above, the request returns [ 0, <4.000000,38.000000,64.000000> ] when used with default LightShare settings in a region.