Difference between revisions of "PRIM SIZE"

From Second Life Wiki
Jump to navigation Jump to search
m (Update for 64m prim scale allowance)
m
Line 8: Line 8:


}}{{LSL Constant
}}{{LSL Constant
|inject-2={{LSL PrimitiveParam Categorize|Prim}}
|name=PRIM_SIZE
|name=PRIM_SIZE
|type=integer
|type=integer
Line 44: Line 45:
|events=
|events=
|location
|location
|cat1=Prim
|cat1
|cat2
|cat2
|cat3
|cat3
|cat4
|cat4
}}
}}

Revision as of 21:19, 1 July 2012

Description

Constant: integer PRIM_SIZE = 7;

The integer constant PRIM_SIZE has the value 7

Returns or sets the prim's size.

llSetPrimitiveParams

[ PRIM_SIZE, vector size ]
• vector size ranges from 0.01 to 64.0 for x, y and z

When used with llSetPrimitiveParams & llSetLinkPrimitiveParams

llGetPrimitiveParams

llGetPrimitiveParams([ PRIM_SIZE ]);

Returns the list [ vector size ]

• vector size ranges from 0.01 to 64.0 for x, y and z

Caveats


Related Articles

Examples

<lsl>//Changing the prim size and rotation default {

 touch_start(integer total_number)
 {
   llSetPrimitiveParams([
       PRIM_SIZE, <0.25,0.5,1.0>,
       PRIM_ROTATION, <1.0, 0.0, 0.0, 0.0>
     ]);
 }

} </lsl>

Deep Notes

Search JIRA for related Issues

Signature

integer PRIM_SIZE = 7;