Difference between revisions of "LlGetMinScaleFactor"

From Second Life Wiki
Jump to navigation Jump to search
Line 5: Line 5:
|return_type=float
|return_type=float
|func_desc
|func_desc
|return_text=that is the smallest scaling factor that can be used with [[llScaleByFactor]] to resize the object.
|return_text=that is the smallest scaling factor that can be used with [[llScaleByFactor]] to resize the object.  This minimum is determined by the [[Limits#Building|prim scale limits]].
|spec
|spec
|caveats
|caveats

Revision as of 16:12, 6 January 2014

Summary

Function: float llGetMinScaleFactor( );

Returns a float that is the smallest scaling factor that can be used with llScaleByFactor to resize the object. This minimum is determined by the prim scale limits.

Examples

<lsl>default {

   touch_start(integer total_number)
   {
       float min_factor = llGetMinScaleFactor();
       float max_factor = llGetMaxScaleFactor();
       llSay(0, "Choose a value between " + (string)min_factor + " and " + (string)max_factor
           + " when calling llScaleByFactor() on this linkset.");
   }
}</lsl>

See Also

Deep Notes

History

Search JIRA for related Issues

Signature

function float llGetMinScaleFactor();