LlSetPrimMediaParams

From Second Life Wiki

Jump to: navigation, search

Template:Needs Translation/LSL/de Template:Needs Translation/LSL/es Template:Needs Translation/LSL/el Template:Needs Translation/LSL/fr Template:Needs Translation/LSL/he Template:Needs Translation/LSL/it Template:Needs Translation/LSL/ja Template:Needs Translation/LSL/ko Template:Needs Translation/LSL/nl Template:Needs Translation/LSL/hu Template:Needs Translation/LSL/no Template:Needs Translation/LSL/da Template:Needs Translation/LSL/sv Template:Needs Translation/LSL/tr Template:Needs Translation/LSL/pl Template:Needs Translation/LSL/pt Template:Needs Translation/LSL/ru Template:Needs Translation/LSL/uk Template:Needs Translation/LSL/zh-Hans Template:Needs Translation/LSL/zh-Hant

Image:Emblem-important-red.svg Pre-release Documentation Warning!

This function only appears in specific branches of the SL client source code. LL may make changes to the implementation prior to release, so this documentation may not reflect the final product, it may not even accurately represent LL's current implementation. It is slated to be released in SL server version 1.33.0 and client version 1.24.4.

Contents

Summary

Buggy
Function: integer llSetPrimMediaParams( integer face, list params );
350 Function ID
1.0 Delay
10.0 Energy

Set the media params for a particular face.
Returns an integer that is a STATUS_* flag which details the success/failure of the operation(s).

• integer face face number or ALL_SIDES
• list params a set of name/value pairs (in no particular order)

If face is ALL_SIDES then the function works on all sides.

controls Flags Description
LSL_STATUS_OK 0 Ok
LSL_STATUS_MALFORMED_PARAMS 1000 Malformed Parameters
LSL_STATUS_TYPE_MISMATCH 1001 Type Mismatch
LSL_STATUS_BOUNDS_ERROR 1002 Bounds Error
LSL_STATUS_NOT_FOUND 1003 Inventory Item Not Found
LSL_STATUS_NOT_SUPPORTED 1004 Not Supported - invalid parameter flag
LSL_STATUS_INTERNAL_ERROR 1999 Internal Error
LSL_STATUS_WHITELIST_FAILED 2001 Whitelist Failed
This information is very preliminary. It is based on guesswork, parameter types, layout and comments from the source code.
Parameter Additional Parameters Description
PRIM_MEDIA_ALT_IMAGE_ENABLE ] 0 [ integer boolean ] Sets whether an alternate image is enabled.
PRIM_MEDIA_CONTROLS ] 1 [ integer control ] Sets the style of controls.
controls Flags Description
PRIM_MEDIA_CONTROLS_STANDARD 0 Standard
PRIM_MEDIA_CONTROLS_MINI 1 Mini
PRIM_MEDIA_CURRENT_URL ] 2 [ string current_url ] Sets the current url.
PRIM_MEDIA_HOME_URL ] 3 [ string home_url ] Sets the home url.
PRIM_MEDIA_AUTO_LOOP ] 4 [ integer boolean ] Sets whether auto-looping is enabled.
PRIM_MEDIA_AUTO_PLAY ] 5 [ integer boolean ] Sets whether auto-playing is enabled.
PRIM_MEDIA_AUTO_SCALE ] 6 [ integer boolean ] Sets whether auto-scaling is enabled.
PRIM_MEDIA_AUTO_ZOOM ] 7 [ integer boolean ] Sets whether auto-zooming is enabled.
PRIM_MEDIA_FIRST_CLICK_INTERACT ] 8 [ integer boolean ] Sets whether the first click interaction is enabled.
PRIM_MEDIA_WIDTH_PIXELS ] 9 [ integer width ] Sets the width in pixels.
PRIM_MEDIA_HEIGHT_PIXELS ] 10 [ integer height ] Sets the height in pixels.
PRIM_MEDIA_WHITELIST_ENABLE ] 11 [ integer boolean ] Sets whether the white-list is enabled or disabled.
PRIM_MEDIA_WHITELIST ] 12 Sets the whitelist.[1]
PRIM_MEDIA_PERMS_INTERACT ] 13 [ integer perms ] Sets the permissions mask that control who can interact with the object.
PRIM_MEDIA_PERMS_CONTROL ] 14 [ integer perms ] Sets the permissions mask that control who can control the object.

Caveats

  • This function causes the script to sleep for 1.0 seconds.
  • The function silently fails if its face value indicates a face that does not exist.
  • If prim-media is not already on this object, add it.
  • Params not specified are unchanged, or if new media is added set to the default specified.

Important Issues

~ Search JIRA for related Bugs
Bug - A problem which impairs or prevents the functions of the product. Open - The issue is open and ready for the assignee to start work on it.    SVN Changeset 2816 in Trunk is immature

Examples

See Also

Functions

•  llGetPrimMediaParams
•  llClearPrimMedia

Deep Notes

History

Issues

~ Search JIRA for related Issues
Bug - A problem which impairs or prevents the functions of the product. Open - The issue is open and ready for the assignee to start work on it.    SVN Changeset 2816 in Trunk is immature

Footnotes

  1. ^ I have no idea how this is implemented, it seems to take a list of strings, but LSL doesn't allow lists in lists.
This article wasn't helpful for you? Maybe the related article at the LSL Wiki is able to bring enlightenment.
In other languages