Difference between revisions of "Viewerhelp:Building and scripting"
Line 1: | Line 1: | ||
{{Help Article Ready for | {{Help Article Ready for Copy Edit}} | ||
Second Life provides a powerful set of tools for creating new content and bringing it to life. Every object, house, vehicle, weapon, and piece of clothing in Second Life has been designed, built, and programmed by Residents just like you! | |||
Second Life provides a powerful set of tools for creating new content and bringing it to life. Every object, house, vehicle, weapon, and piece of clothing in Second Life has been designed, built, and programmed by Residents just like you! | |||
== Building == | == Building == | ||
Objects built using Second Life's native building tools are constructed of {{Xref|prim|primitives}}, often called "prims". | Objects built using Second Life's native building tools are constructed of {{Xref|prim|primitives}}, often called "prims". Prims are basic geometric shapes that you can resize, stretch, color, texture, and link together to form a complete object. To create your first prim: | ||
# Choose '''Build''' menu > '''Build''' from the top of the Viewer window. | # Choose '''Build''' menu > '''Build''' from the top of the Viewer window. | ||
Line 14: | Line 15: | ||
== Scripting == | == Scripting == | ||
Many objects contain {{Xref|script|scripts}}, programs written in Linden Scripting Language ({{Xref|LSL}}). | Many objects contain {{Xref|script|scripts}}, programs written in Linden Scripting Language ({{Xref|LSL}}). Scripts can make objects behave in a certain way, change color, interact with avatars and other objects, and perform thousands of other tasks. To create your first script: | ||
To create your first script: | |||
# Create a new object, as described above. | # Create a new object, as described above. | ||
# Right-click the object and choose '''Edit''' from the contextual menu. | # Right-click the object and choose '''Edit''' from the contextual menu. | ||
# Click the Content tab of the {{Winlink|Build Tools}} window. | # Click the Content tab of the {{Winlink|Build Tools}} window. | ||
# Click the '''New Script''' button. | # Click the '''New Script''' button. | ||
# A script named "New Script" appears in the object's contents, and the | # A script named "<code>New Script</code>" appears in the object's contents, and the object says "<code>Hello, Avatar!</code>" in {{winlink|Nearby Chat}} as the script starts running. | ||
# Double-click the script to examine and edit it. | |||
== See also == | |||
* '''[http://wiki.secondlife.com/wiki/How_do_I_build_objects%3F How do I build objects?]''' - A brief introduction to inworld building. | |||
* [http://wiki.secondlife.com/wiki/Category:Building_Objects Building Objects] | * '''[http://wiki.secondlife.com/wiki/LSL_Portal LSL Portal]''' - Descriptions of all LSL commands, scripting tutorials, and lots of resources contributed by Residents. | ||
* [http://wiki.secondlife.com/wiki/Category:Coding_Scripts Coding Scripts] | * '''[http://secondlife.com/kb Knowledge Base]''' - Contains extensive information about building, scripting, and clothing creation such as these categories: | ||
* [http://wiki.secondlife.com/wiki/Category:Making_Clothing Making Clothing] | ** '''[http://wiki.secondlife.com/wiki/Category:Building_Objects Building Objects]''' | ||
* [http://wiki.secondlife.com/wiki/Category:Working_with_Textures Working with Textures] | ** '''[http://wiki.secondlife.com/wiki/Category:Coding_Scripts Coding Scripts]''' | ||
** '''[http://wiki.secondlife.com/wiki/Category:Making_Clothing Making Clothing]''' | |||
** '''[http://wiki.secondlife.com/wiki/Category:Working_with_Textures Working with Textures]''' |
Revision as of 10:49, 30 March 2010
Note: This article is ready for copy editing. |
Second Life provides a powerful set of tools for creating new content and bringing it to life. Every object, house, vehicle, weapon, and piece of clothing in Second Life has been designed, built, and programmed by Residents just like you!
Building
Objects built using Second Life's native building tools are constructed of primitives, often called "prims". Prims are basic geometric shapes that you can resize, stretch, color, texture, and link together to form a complete object. To create your first prim:
- Choose Build menu > Build from the top of the Viewer window.
- The Build Tools window opens, with the Create tool active and the Cube primitive type selected.
- Click the ground anywhere to create a new cube primitive inworld.
Tip: If you get an error message saying you can't build here, visit a sandbox like Sandbox Island. |
Scripting
Many objects contain scripts, programs written in Linden Scripting Language (LSL). Scripts can make objects behave in a certain way, change color, interact with avatars and other objects, and perform thousands of other tasks. To create your first script:
- Create a new object, as described above.
- Right-click the object and choose Edit from the contextual menu.
- Click the Content tab of the Build Tools window.
- Click the New Script button.
- A script named "
New Script
" appears in the object's contents, and the object says "Hello, Avatar!
" in Nearby Chat as the script starts running. - Double-click the script to examine and edit it.
See also
- How do I build objects? - A brief introduction to inworld building.
- LSL Portal - Descriptions of all LSL commands, scripting tutorials, and lots of resources contributed by Residents.
- Knowledge Base - Contains extensive information about building, scripting, and clothing creation such as these categories: