Difference between revisions of "CHANGED SCALE"

From Second Life Wiki
Jump to navigation Jump to search
m (<lsl> tag to <source>)
 
(6 intermediate revisions by 5 users not shown)
Line 3: Line 3:
|type=integer
|type=integer
|value={{LSL Hex|0x8}}
|value={{LSL Hex|0x8}}
|desc=Prim scale has changed
|desc=The prim scale of at least one prim in the linked object has changed. Only the root prim will receive this event.
|examples
|caveats=*Changes in scale for child prims will trigger this event in the root.
|functions
|examples=
<source lang="lsl2">
default
{
    changed(integer change)
    {
        if (change & CHANGED_SCALE) //note that it's & and not &&... it's bitwise!
        {
            llOwnerSay("The prims size has changed.");
        }
    }
}
</source>
|functions=
{{LSL DefineRow||[[llSetScale]]|}}
{{LSL DefineRow||[[llSetPrimitiveParams]]|[[PRIM_SIZE]]}}
{{LSL DefineRow||[[llSetLinkPrimitiveParams]]|[[PRIM_SIZE]]}}
|events=
|events=
{{LSL DefineRow||[[changed]]|}}
{{LSL DefineRow||[[changed]]|}}
|issues={{Issues/SVC-2549}}
|cat1
|cat1
|cat2
|cat2

Latest revision as of 16:19, 22 January 2015

Description

Constant: integer CHANGED_SCALE = 0x8;

The integer constant CHANGED_SCALE has the value 0x8

The prim scale of at least one prim in the linked object has changed. Only the root prim will receive this event.

Caveats

  • Changes in scale for child prims will trigger this event in the root.

Important Issues

~ All Issues ~ Search JIRA for related Bugs
   changed(CHANGED_SCALE) is triggered only in root prim instead of rescaled prim.

Related Articles

Functions

•  llSetScale
•  llSetPrimitiveParams PRIM_SIZE
•  llSetLinkPrimitiveParams PRIM_SIZE

Events

•  changed

Examples

default
{
    changed(integer change)
    {
        if (change & CHANGED_SCALE) //note that it's & and not &&... it's bitwise!
        {
            llOwnerSay("The prims size has changed.");
        }
    }
}

Deep Notes

Search JIRA for related Issues

Signature

integer CHANGED_SCALE = 0x8;