Object editing

Objects can contain components, such as lights, scripts, and sounds, that may add additional properties for you to adjust. You can view and adjust the components of objects in a scene while in edit mode.

Add_component.png
Right-click the object's name and choose from the Add menu to add a component to your object.

Adding containers

Objects can include one or more containers, which are groups of additional content and components associated with the object. Containers may contain scripts, audio features, lights, and additional physics volumes for the object. Typically, an object that is added to the scene automatically has a container that holds the object's existing components. This container can be accessed by pressing on the blue arrow on the side of the object's name in the Scene Objects panel. 

To add a container to your object:

  1. In the Scene Objects panel, right-click the object's name.
  2. Choose Add > Container. A new container is created within the object, with the name "CON" followed by a sequential number. For example, the first new container created in an object is named "CON0". The next is named "CON1", "CON2", and so on.
Add_Containers.png
Sequentially numbered containers in the Scene Objects panel.

 

Adding lights

You can add lights to an object. Depending on the LightType property you choose, the light can behave exactly like any of the lights under the Lights tab of the Inventory.

To add a light to an object:

  1. In the Scene Objects panel, right-click the object name or a container within the object where you would like to add the light.
  2. Choose Add > Light. A new light is created within the object with the name LIT (short for "light") followed by a sequential number (for example, Light LIT0).
  3. Right-click on the light component (such as Light LIT0) to bring up a list of available actions. 
  4. The new Light component can be set by clicking on Properties. This opens the light's properties panel, which allows you to set the following light properties:
    • Name - Provide a name for the light.
    • LightType - Choose from DirectionalPoint, or Spot from the dropdown menu. Each light type provides additional properties exactly like those found in their counterparts under the Lights tab of the System Objects Inventory.
      add-lights-02.png
      Click on the LightType dropdown menu to set the type of light you want to use. 
  5. Once you choose a LightType, you can set additional light properties based on the type of light you have selected.
add-lights-04.png
The Point LightType and the parameters set above give the robot a glowing effect.
Note: You can only edit the LightType of a light component via the individual light properties panel. However, you can edit the light's properties (i.e. color, range) both in the light properties panel and the main object's properties panel.

 

Adding scripts

You can add scripts to objects in order to make them perform actions or interact with avatars and the environment. Some scripts allow you to enter parameters; the name and function of each parameter is defined by the writer of the script.

To add a script to an object:

  1. In the Scene Objects panel, right-click the object name or a container within the object where you would like to add the script.
  2. Choose Add > Script. A new script is created within the object with the name SCR (short for "script") followed by a sequential number (for example, Script SCR0). 
  3. In the Scene Objects panel, right-click the name of the script and choose Properties from the list of available actions to open the script's Properties panel.
    add-script-03a.png
     Open the Script component's Properties panel and select a script from the Script dropdown menu. 
  4. In the Script dropdown, choose a script you have uploaded, purchased, or one of the scripts provided by default.
  5. After choosing the script you want to use, set the parameters of the script to your liking. The parameters available depend upon the script and which parameters the writer of the script wished to expose.
Note: You may also change your script and edit script parameters from the object's main properties panel. For more information, see Uploading and Adding Scripts.

Adding audio

To attach a sound to an object:

  1. In the Scene Objects panel, right-click the object name or a container within the object where you would like to add the sound.
  2. Choose Add > Audio. A new sound is created within the object with the name AUD (short for "audio") followed by a sequential number (For example, Audio AUD0).
  3. The new sound comes with various properties, which can be accessed by right-clicking the name of the audio and choosing Properties. From the Properties panel, you can set the same properties as in a standalone sound emitter, which are explained in Uploading a sound.
    Open_audio_properties.png
    In the audio component's Properties panel, select a Sound and set its other properties as described in Uploading a sound.
    Note: You may also change your sound and edit sound properties from the object's main properties panel. For more information, see Uploading a sound.

Because the audio emitter is attached to the object, when the object moves, the sound moves with it. By default, a sound is attached to the center of an object. You can reposition the emitter relative to the object:

  1. In the Scene Objects panel, click the sound inside the container (it is named something like "Audio AUD0"). This selects the audio emitter instead of its containing object.
  2. Drag the emitter by the XYZ handles to reposition it.
repositioning_emitter.png
Repositioning the sound emitter of an object using the XYZ handles.

This is useful for times when you want a sound to come from another position on an object. For example, if you have a dinosaur that roars, you probably want the sound emitter to be placed at the dinosaur's mouth.

Adding collision volumes

You can add collision volumes to an object:

  1. In the Scene Objects panel, right-click the object name or a container within the object where you would like to add the collision volume.
  2. Choose Add > Volume. A new volume is created within the object with the name RBOD (short for "rigid body") followed by a sequential number.
  3. In the Scene Objects panel, right-click the volume component you want to edit and choose Properties to open the volume's properties panel. The volume properties panel allows you to set the following properties:
    • VolumeType - Choose BoxSphere, or Mesh (an uploaded model shape). Depending on which mode you choose, a different scaling option appears.
    • HasCollision - Allows physical objects and avatars to collide with the object. This must be set to On as a prerequisite to making the object dynamic.
    • Radius - Appears if the VolumeType is Sphere. Use the slider or enter a value to define the bounds of the sphere.
    • Extents - Appears if the VolumeType is Box. Enter values to define the X, Y, and Z dimensions of the box.
    • Scale - Appears if the VolumeType is Mesh. Use the slider or enter a value to scale the collision volume up or down by up to a factor of 10.
Was this article helpful?
7 out of 8 found this helpful
Have more questions? Submit a request

0 Comments

Article is closed for comments.