Don't click here unless you want to be banned.
LSL Wiki :
Prim
HomePage
::
PageIndex
::
RecentChanges
::
RecentlyCommented
::
UserSettings
:: You are crawling22.us.archive.org
=====Prim===== A primitive ("prim" for short) is the basic building block (made up of [[polygon polygons]]) of [[SecondLife Second Life]]. Using [[SL SL's]] built-in [[object]] [[editor]], just about anything can be modeled out of primitives. A prim has a [[name]], description, [[material]], and a basic [[shape]] (box, sphere, cylinder, torus, etc) that can be [[scale resized]] and modified by changing its [[parameter parameters]] (cut, hollow, twist, taper, shear, etc). Each prim has several [[side sides]] which each have a [[color]], [[opacity]], and [[texture]] that can be [[rotation rotated]], repeated ([[UV]]), and [[offset]]. Optionally, a prim can have such features floating [[text]], a [[llParticleSystem particle system]], [[lighting light-emissive]], or be [[flexible]]. An [[object]] can be made by [[link linking]] multiple primitives together, but a single prim is an object as well. Each prim has an [[inventory]] that can contain [[item items]] like [[script scripts]], objects, [[notecard notecards]], textures, or anything else in a [[user user's]] inventory. All running scripts are contained within the prims of an object. Despite the similarity in names, Second Life's primitives are not //true// primitives like you'd find in 3D modeler such as 3D Studio MAX or Maya, but are actually //parametric models//: simple 3D objects with [[variable]] property settings that give the //appearance// of primitives that can be deformed to a degree (but things like [[vertex]] manipulation or [[http://en.wikipedia.org/wiki/Constructive_solid_geometry CSG subtraction]] can't be done to them). There is an ongoing [[ParametricDebate debate]] surrounding the question of supplementing parametric models with true meshes. At this time, there is no mesh support in Second Life. ====Functions==== |||c **Function** || **Description** || || ##[[llGetAlpha]]## ""²"" || Get prim [[alpha transparency]] || || ##[[llSetAlpha]]## ""²"" || Set prim transparency || || ##[[llSetLinkAlpha]]## ""²"" || Sets transparency of another prim in linkset || || ##[[llGetBoundingBox]]## || Get prim bounding box. || || ##[[llGetColor]]## ""²"" || Get prim [[color]] || || ##[[llSetColor]]## ""²"" || Set prim color || || ##[[llSetLinkColor]]## ""²"" || Sets color of another prim in linkset || || ##[[llGetNumberOfPrims]]## || Get total number of prims in [[link linkset]] || || ##[[llGetNumberOfSides]]##""¹²"" || Get prim [[side sides]] || || ##[[llGetObjectDesc]]## || Get prim description || || ##[[llGetObjectName]]## || Get prim name || || ##[[llGetObjectPermMask]]## || Get object [[permissions]] || || ##[[llGetObjectPrimCount]]## || Returns the prim count for any specific object in a sim || || ##[[llGetPrimitiveParams]]## || Get nearly every prim [[attribute]] || || ##[[llSetPrimitiveParams]]## || Set nearly every prim attribute || || ##[[llSetLinkPrimitiveParams]]## || Sets prim attributes of another prim in linkset || || ##[[llParticleSystem]]## ""¹"" || Configure prim [[particles particle]] emitter || || ##[[llSetCameraAtOffset]]##""¹<br>""##[[llSetCameraEyeOffset]]##""¹"" || Changes the camera configuration of [[agentandavatar avatars]] that sit on the prim.|| || ##[[llGetMass]]## || Gets the mass of the prim|| || ##[[llSetObjectDesc]]## || Set prim description || || ##[[llGetObjectMass]]## || Gets the mass of the object specified by the key.|| || ##[[llSetObjectName]]## || Set prim name || || ##[[llSetObjectPermMask]]## || Set object permissions || || ##[[llGetPos]]## || Get the position of a prim or linkset || || ##[[llGetLocalPos]]## || Get the position of a prim within a linkset relative to its root prim || || ##[[llSetPos]]## || Set the position of a prim or link set || || ##[[llGetLocalRot]]## || Get the position of a prim within a linkset relative to its root prim || || ##[[llGetRot]]## || Get the rotation of a prim or link set || || ##[[llSetLocalRot]]## || Set the rotation of a prim within a linkset relative to its root prim || || ##[[llSetRot]]## || Set the rotation of a prim or link set || || ##[[llGetScale]]## ""²"" || Get prim [[scale]] || || ##[[llSetScale]]## ""²"" || Set prim scale || || ##[[llSitTarget]]##""¹"" || Set prim [[sit]] [[target]] || || ##[[llSetSitText]]##""¹"" || Replace prim "Sit" [[text]] in [[piemenu pie menu]] || || ##[[llSetStatus]]## ""³"" || Toggle various attributes of prim/object: [[phantom]], [[physics]], [[rotation rotational]] limitations and [[llDie die]]/[[return]] conditions. || || ##[[llSetText]]## ""¹"" || Set floating text above prim || || ##[[llGetTexture]]## ""²"" || Get prim [[texture]] || || ##[[llSetTexture]]## ""²"" || Set prim texture || || ##[[llSetLinkTexture]]## ""²"" || Sets texture of another prim in linkset || || ##[[llSetTouchText]]##""¹"" || Replace prim "Touch" text in pie menu || || ##[[llSetRemoteScriptAccessPin]]##""¹"" ||Set prim remote script access pin ||| ""¹"" These are not traditional prim functions in the sense that they cannot be set from the object editor, but their attributes survive regardless if a script is present in the object. ""²"" Can apply to [[side sides]] or prims. ""³"" Only phantom and physics can currently be set from the editor menu. ====References==== -[[http://forums.secondlife.com/showthread.php?t=106052#post1035024 Kelly Linden, 5/12/06]]: ""<font color=green>"""...when a prim is saved (as an [[asset]]) in [[text]] format it is about 3[[kilobyte k]] uncompressed and about 1k compressed."""</font>"" ---- [[object Object]] | [[link Link]] | [[texture Texture]] | [[inventory Inventory]] | [[dynamics Dynamics]]
Valid XHTML 1.0 Transitional
::
Valid CSS
:: Powered by
WakkaWiki 0.1.2