LlGetPrimMediaParams

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: list llGetPrimMediaParams( integer face, list params );
351 Function ID
1.0 Delay
10.0 Energy

Get the media params for a particular face on an object, given the desired list of names.
Returns a list of values in the order requested.

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

If face is ALL_SIDES then the function works on all sides. Returns an empty list if no media exists on the face.

This information is very preliminary. It is based on guesswork, parameter types, layout and comments from the source code.
Parameter Return Values Description
PRIM_MEDIA_ALT_IMAGE_ENABLE ] 0 [ integer boolean ] Gets whether an alternate image is enabled.
PRIM_MEDIA_CONTROLS ] 1 [ integer control ] Gets 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 ] Gets the current url.
PRIM_MEDIA_HOME_URL ] 3 [ string home_url ] Gets the home url.
PRIM_MEDIA_AUTO_LOOP ] 4 [ integer boolean ] Gets whether auto-looping is enabled.
PRIM_MEDIA_AUTO_PLAY ] 5 [ integer boolean ] Gets whether auto-playing is enabled.
PRIM_MEDIA_AUTO_SCALE ] 6 [ integer boolean ] Gets whether auto-scaling is enabled.
PRIM_MEDIA_AUTO_ZOOM ] 7 [ integer boolean ] Gets whether auto-zooming is enabled.
PRIM_MEDIA_FIRST_CLICK_INTERACT ] 8 [ integer boolean ] Gets whether the first click interaction is enabled.
PRIM_MEDIA_WIDTH_PIXELS ] 9 [ integer width ] Gets the width in pixels.
PRIM_MEDIA_HEIGHT_PIXELS ] 10 [ integer height ] Gets the height in pixels.
PRIM_MEDIA_WHITELIST_ENABLE ] 11 [ integer boolean ] Gets whether the white-list is enabled or disabled.
PRIM_MEDIA_WHITELIST ] 12 Gets the whitelist.[1]
PRIM_MEDIA_PERMS_INTERACT ] 13 [ integer perms ] Gets the permissions mask that control who can interact with the object.
PRIM_MEDIA_PERMS_CONTROL ] 14 [ integer perms ] Gets 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.

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

•  llSetPrimMediaParams
•  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.
Personal tools
In other languages