Scripting Features

  • Search existing ideas before submitting
  • Use support.secondlife.com for customer support issues
  • Keep posts on-topic
Thank you for your ideas!
Add a Text Rendering Method
Add a new function LSL function named llRenderText or similar, which allows users to dynamically render text, with limited but flexible formatting, onto the face of their choosing. Concept: // Signature llRenderText(integer face, string text, list params); // Basic example llRenderText(ALL_FACES, "Lorem ipsum...", [ FONT_ALIGN, "right", FONT_WEIGHT, "bold", FONT_FAMILY, "sans serif" ]); Rationale Text is ubiquitous, yet Second Life has no way for users to display text other than uploading a texture, setting floating text using llSetText , or using relatively resource intensive solution such as XyText/Furware/et al. This absence precludes interesting features, such as being able to create a responsive interactive terminal in Second Life, HUDs with dynamic text, etc. A scripted and efficient text solution that displays on the face of a prim/mesh would give Second Life the biggest bang for the buck: Limited in scope (easier to implement than grand UI-creation ideas) Easy to kitbash into existing and new creations For inspiration, you can look to how the Text Display widget is implemented in the Playstation game Dreams. It has limited options: a finite number of fonts and formatting options, but the fact that it can be combined with other content makes it rather powerful. Other details Font color, opacity, glow, etc are controlled by prim properties (Example: setting face color to red sets font color to red) Questions Should the background always be transparent? Creators could put another prim behind the text display face to give it a background, or it could be a property of the render params. Possible Parameters FONT_WEIGHT FONT_STYLE FONT_FAMILY FONT_VERTICAL_ALIGN FONT_HORIZONTAL_ALIGN FONT_TEXT_WRAP FONT_LINE_HEIGHT FONT_SIZE Possible Features Markdown / rich text
37
·
tracked
Feature Request: Enable Publicly Synchronized X/Y/Z Avatar Hover Offsets
SUMMARY Please extend Second Life's existing avatar hover-height functionality to support publicly synchronized three-dimensional positional adjustments (X/Y/Z), particularly for fine-tuning seated avatar positions without modifying furniture or animations. ## The existing XYZ support While developing the [SEBASTYNE] Community Viewer, we discovered that Second Life's viewer code already contains much of the infrastructure needed to handle three-dimensional hover offsets. Specifically: LLVOAvatarSelf::setHoverOffset() accepts an LLVector3 , meaning it can represent X, Y, and Z offsets. LLVOAvatar::parseAppearanceMessage() receives an AppearanceHover.HoverHeight value as an LLVector3 , rather than a single floating-point number. The avatar rendering code applies the three-dimensional hover vector, allowing horizontal as well as vertical visual displacement. However, LLVOAvatarSelf::sendHoverHeight() submits only hover_offset[2] (the Z component) through the AgentPreferences capability, using the scalar hover_height field. In other words, the avatar appearance system already accommodates XYZ values, but the existing viewer-to-simulator interface only provides a supported way to submit Z. The additional X/Y components are effectively inaccessible through the normal hover-height adjustment mechanism. ## Experimental findings We implemented working local X/Y adjustments in the [SEBASTYNE] Community Viewer, allowing seated avatars to move in precise 1 cm and 5 cm increments. These adjustments render correctly in the local viewer but are not visible to other residents. By comparison, vertical hover-height adjustments synchronize successfully. We also tested two experimental AgentPreferences payload formats: Additional X/Y fields: The simulator returned HTTP success, but the resulting avatar appearance update contained zero horizontal offsets. Full XYZ vector: Replacing the scalar hover-height value with a vector caused the request to fail. These findings suggest that the current simulator capability does not expose support for submitting horizontal offsets, even though the appearance message and viewer rendering code can represent them. ## Requested functionality Please provide an officially supported viewer-to-simulator method for submitting horizontal avatar hover offsets alongside the existing vertical offset. Ideally, this would: Accept three-dimensional X/Y/Z offsets. Synchronize those offsets through avatar appearance updates so other viewers can render them. Preserve existing Z-only functionality and compatibility with older viewers. Allow small, precise adjustments while seated, without altering the underlying furniture or animation. Include appropriate limits and safeguards. ## Why this matters Furniture and animations frequently require minor positional corrections because avatars vary in proportions, body shapes, and animation configurations. Being able to move a seated avatar a few centimetres forward, backward or sideways would substantially improve compatibility with existing Second Life content. Currently, such corrections often require furniture-specific scripts, modifying objects or changing animations. A standardized XYZ hover-offset capability would allow viewer developers to offer universal positioning controls, without requiring changes to millions of existing furniture items. ## Technical question for Linden Lab **Given that AppearanceHover.HoverHeight is already represented as a three-dimensional vector, could the existing AgentPreferences capability be extended to accept and rebroadcast X/Y components, rather than restricting outgoing adjustments to Z?** Alternatively, could another supported capability expose these positional offsets? This appears to be a promising opportunity to extend functionality already partially represented in the viewer and avatar appearance protocol.
2
·
tracked
New LSL llAnimeshEnabled(integer enabled); Toggle Animesh Property on/off
New LSL function that allows scripts to toggle an object’s Animesh property state at runtime. llAnimeshEnabled(integer enabled); ## Overview Currently, enabling Animesh on an object significantly increases its land impact, even when the object is idle. In contrast, a comparable non-Animesh object—especially one with well-optimized geometry and materials—can often remain at a land impact of 1. At the same time, Animesh animation itself is already fully script-driven. Functions like: llStartObjectAnimation(string anim) llStopObjectAnimation(string anim) llGetObjectAnimationNames() allow scripts to control animation playback dynamically. However, these functions only operate after an object is already in an Animesh-enabled state. This creates a structural limitation: creators can control what an object does, but not whether it needs to be Animesh at all at a given moment. ## How Animesh Currently Works Animesh objects function by associating a skeleton with a rigged mesh linkset. When a script plays an animation, the skeleton drives deformation of the mesh. Importantly: An object does nothing by default when set to Animesh Animations must be explicitly triggered via script The visual position of the mesh is driven by the skeleton and active animations, not strictly the object’s base transform This means Animesh is fundamentally an on-demand animation system , but it is currently forced to be always enabled at the object level , regardless of whether animations are playing. ## Problem There is currently no way to: Disable Animesh when no animations are running Return an object to a low land impact idle state Dynamically enable Animesh only when animation is required As a result, creators must choose between: Keeping Animesh permanently enabled (high land impact, unnecessary overhead) Building complex systems involving object swapping, rez/re-rez logic, or duplicate assets ## Use Case There is a strong need for objects that can dynamically transition between static and animated states. For example: A robot or pet that remains dormant until activated Creatures that only animate when a user is nearby Props that “wake up” briefly to perform an action Environmental elements that animate only during interaction In all of these cases, the object does not need continuous skeletal evaluation. ## Expected Behavior enabled = TRUE - Enables Animesh on the object - Allows use of llStartObjectAnimation and related functions enabled = FALSE - Disables Animesh - Stops all active animations - Returns the object to static mesh behavior - Restores lower land impact where applicable ## Benefits Land Impact Optimization Objects only incur Animesh cost when actively animating Performance Efficiency Reduces unnecessary skeletal evaluation on idle objects Cleaner Content Architecture Eliminates the need for duplicate objects or rez-based workarounds Better Alignment with Existing API Design Complements existing animation control functions by adding missing state control ## Additional Considerations State transitions should preserve: - Object transform - Linkset integrity - Script execution state Simulator safeguards may be needed: - Throttling or cooldown on toggling - Permissions checks to prevent abuse Documentation should clarify: - Effects on physics and collision - Bounding box changes - Interaction with pathfinding and attachments
2
·
tracked
Make the “Explore in IDE” launch target configurable instead of hard-coding
### Problem When the user activates Explore in IDE (or any other tight-integration launch path), the viewer always constructs and opens this URI: vscode://lindenlab.sl-vscode-plugin/connect?port=…[&object=…][&script=…] This is hard-coded in: indra/newview/llscripteditorws.cpp - LLScriptEditorWSServer::buildVSCodeURI() - LLScriptEditorWSServer::launchVSCode() There is currently no way for a user (or another external editor) to change which application is launched. Every time the modern WebSocket path is started via the UI, VS Code is forced to open even if the user is using a different editor that already implements the JSON-RPC protocol documented in doc/external-editor-json-rpc.md . This is especially annoying for developers who keep another compliant editor running and only want the viewer’s WebSocket server to start / publish an object. ### Proposed change Rename the preference checkbox Current label contains “VS Code”. Change it to something neutral, e.g. “Code Tight Integration” (or “Tight Editor Integration”). Add an optional text field under the same “Script Development” section, visible when tight integration is enabled: - Setting name suggestion: ExternalWebsocketSyncLaunchURI (or ExternalEditorLaunchURI ) - Default value: vscode://lindenlab.sl-vscode-plugin/connect - The field should accept any URI scheme that the OS can open (or a full executable path + arguments if that is preferred). - The viewer should append the existing query parameters ( ?port=… , &object=… , &script=… ) to whatever base the user supplies, exactly as buildVSCodeURI does today. Update the launch path Replace the hard-coded string in buildVSCodeURI() / launchVSCode() with a read of the new setting. Keep the current default so existing VS Code users are unaffected. Documentation Update the “VS Code Launch URI” section in doc/external-editor-json-rpc.md to describe the configurable base URI and the parameters that are still appended by the viewer. ### Benefits Any external editor that understands the documented JSON-RPC protocol can be launched directly from “Explore in IDE”. Users who already have their preferred editor running can leave the field empty or point it at a no-op / custom handler so that only the WebSocket server is started. The official VS Code plugin remains the zero-configuration default. Removes the product-name-specific wording from the preferences UI. ### Related code / history Introduced in the tight-integration work (see PR #5834 and the VS Code launch helpers added in llscripteditorws.cpp ). Settings already present: ExternalWebsocketSyncEnable , ExternalWebsocketSyncTightIntegration , ExternalWebsocketSyncPort .
2
·
tracked
Load More
→