Object Selection Test

Category:Test Scripts
=Object Selection Test=
==Right click Selecting==
#Create a box on the ground.
#Right click the object so the pie menu appears, then click the Edit menu. Verify the box remains selected.
#Right click the object so the pie menu appears, hit the Delete key. Verify the box was deleted.
#Right click the object so the pie menu appears, select More>More>Inspect. Verify the object stays highlighted, with a purple border, and the inspect dialog shows information about that object.
#Keeping the inspect dialog open, right click on other objects and verify that their properties show up in the inspect dialog.
==Worn items remain selected as you walk to them==
#Create a box on the ground about 10m from your Avatar
#Close the Build window.
#Right click the box > More > Attach > Left Hand. Verify your avatar walks over to the box and the box attaches to your hand.
==Worn items remain selected After you attach them if you're in edit mode==
#Create a box on the ground about 10m from your Avatar
#Remain in Edit mode.
#Right click the box > More > Attach > Left Hand. Verify your avatar walks over to the box and the box attaches to your hand.
#The box will remain selected. 
==Click Select and Deselect of prims==
#Create 3 boxes in a row.
#Enter edit mode, .
#Click one box to select it.
#Shift-click each of the boxes to select them.
#Shift-click each of the boxes to deselect them.
#-click each of the boxes to select them.
#-click each of the boxes to deselect them (you may need to zoom way in so the boxes are larger than the rotate circles UI). 
#Delete the 3 boxes.
==Drag Select and Deselect of prims==
#Create 3 boxes in a row (or use previous ones)
#Enter edit mode, .
#Click on the ground and drag the mouse to select the boxes with a selection rectangle, one at a time.
#Verify that the objects can be selected this way, individually, and as a group.
#With all 3 boxes selected, hold down and drag a rectangle around one of them.
#The object should be highlighted with a red border, and deselected when you release the mouse button. The rest of your selection should remain intact.
==Drag select ignores foliage==
#Create a tree, some grass, and a box. (This may only work on land you own)
#Drag select around all of them
#Verify that only the box was selected.
==(Reverse) Selection order is maintained when linking objects==
<lsl>
// Link number script
default
{
 changed(integer change)
 {
 if (change & CHANGED_LINK)
 {
 llSetText("Link #" + (string)llGetLinkNumber(), <1.0, 0.5, 0.0>, 1.0);
 }
 }
}
</lsl>
 
#Create a box on the ground and add the above script to the box. (Click the Content tab, click New Script, open the script, replace the script text with the following script text, click Save)
#Duplicated the box 2 times so you have 3 boxes.
#Enter edit mode, .
#Shift-click each of the boxes (from left to right) to select them.
#Link the boxes by hitting .
#Verify the first box you selected is Link #3, and the last box you selected is Link #1.
#Unlink the object by hitting .
#Link the boxes again by hitting .
#Verify the link order is the same as before.
#Unlink the object again. ()
#Shift-click the middle prim to deselect it, then shift-click it to select it again.
#Link the boxes again by hitting .
#Verify the link numbers from left to right are #3, #1, #2.
#Unlink and deselect the boxes. Leave the boxes for the next section.
==(Reverse) Drag-Selection order is maintained when linking objects==
#Use the 3 boxes from the last section.
#Enter edit mode, .
#Draw a selection box around the entirety of the 3 boxes by dragging the cursor on the ground from upper-left to lower-right.
#Link the boxes by hitting .
#Verify the first box you selected is Link #3, and the last box you selected is Link #1.
#Unlink and deselect the boxes.
==Limiting Drag Select scope==
===Select Only My Objects===
#(Which actually means "Select Objects that are movable and that I have permissions to move")
#Enable Tools menu > "Select Only My Objects"
#Disable Tools menu > "Select Only Movable Objects" (default)
#(Turn on Advanced > Debug Permissions and look at the F:M permission of the object?)
#Create 3 boxes
#Deed the first box to a group you own.
#Lock the second box (Edit window > Object tab > Locked)
#Drag select the 3 boxes.
#Verify all 3 boxes are selected.
#Disable Tools menu > "Select Only My Objects" (default)
===Select Only Movable Objects===
#Disable Tools menu > "Select Only My Objects" (default)
#Enable Tools menu > "Select Only Movable Objects"
#Create 2 boxes, and Lock one box.
#Drag select both boxex. Verify only the unlocked box is selected.
#Disable Tools menu > "Select Only Movable Objects"(default)
===Select By Surrounding===
#Enable Tools menu > "Select By Surrounding" (default)
#Draw a selection box around half of a box. Verify the box was not selected.
#Disable Tools menu > "Select By Surrounding"
#Draw a selection box around one corner of a box. Verify the box was selected.
#Enable Tools menu > "Select By Surrounding" (default)
===Show Hidden Selection===
#Create a box, then create a larger box above it.
#Position your camera so the smaller box is hidden by the larger box.
#Drag select both objects.
#Disable Tools menu > "Show Hidden Selection"
#Observe that you can no longer see the selection of the smaller box.
#Enable Tools menu > "Show Hidden Selection" (default)
==Texture Selection==
#Select textures allows you to click individual sides of objects and texture them.
#Shift click sides to add or subtract them from the selection.
#If you already have an object selected when you change to "select texture", all sides of the object(s) will be automatically selected.
==Switching from Texture Select to Position mode will select the objects.==
#Create 3 cubes. Link 2 of the cubes together.
#In the Edit window, select "Select Texture"
#Click on one face of the linked child object, and shift-click on one face of the unlinked object.
#In the Edit window, select "Position"
#All 3 prims should now be selected.
#Delete the objects
==Edit linked parts==
#Create 5 boxes. Link 2 together. Link 2 others together.
#In the Edit window, enable "Edit linked parts"
#Shift-click prims within the linked sets to add and subtract them from the selection.
==Selection conversions==
#Create 3 boxes. Link them together.
#Select the linked boxes. With the boxes selected, check "Edit Linked Parts."
#Verify that all 3 boxes are individually selected.
#With "Edit Linked Parts", select just one of the boxes. Uncheck "Edit Linked Parts."
#Verify that the linked set of 3 boxes is selected.
#With the linked boxes selected, click on "Select Texture."
#Verify that all textures on the 3 boxes are selected.
#Select one texture on any of the boxes. Click on "Position."
#Verify that the linked set of boxes is selected.
#Select textures from multiple unlinked prims, then click "Position."
#Verify that all prims you clicked on are now selected.
==Select your attachments==
#Attach a box to one hand and a linked object to the other hand
#Verify you can select either attachments by right-clicking it.
#Enter Edit mode (), and select both attachments. Verify you can move, rotate, and scale both attachments at the same time
#In the Edit window, enable "Edit linked parts"
#Verify you can select any prim on your attachments by right-clicking it.
#Select the single box attachment and one prim of the linked attachment. Verify you can move, rotate, and scale both prims at the same time
==Select other's attachments==
#Right click someone else's attachments. Verify the pie menu when right-clicking someone else's attachment is the same as when right-clicking the avatar.
#Verify you do not see
#Enter Edit mode (), and select another avatar's attachment. Verify you do not see any move widgets and you are not able to modify their attachment in any way.
==Select other's vehicles==
#Enter edit mode () and verify you can select other's vehicles and their vehicle stops. Unfortunate.
==Block Grab LSL flag==
<lsl>
default
{
 state_entry()
 {
 llSetStatus(STATUS_BLOCK_GRAB, TRUE);
// Controls whether the object can be grabbed. A grab is the default action
// when in third person, and is available as the 'hand' tool in build mode.
// This is useful for physical objects that you don't want other people to
// be able to trivially disturb. The default if FALSE.
 }
}
</lsl>
(This doesn't work. I can jiggle other people's physical objects that have this script)
==Deselection==
Verify the following methods will unselect objects
#Hit escape
#
#Click another object
#Click the ground
#Clicking the sky
#Object moves too far away
Verify the following methods will not unselect objects
#Walking or flying near the object
==Limit Select Distance==
#Enable Advanced menu > Limit Select Distance (default)
#Verify you can drag objects that are within 65m of you.
==Disable Limit Select Distance==
#Disable Advanced menu > Limit Select Distance
#Verify you can drag objects that you can see, even if they are > 65m from you.
#Enable Advanced menu > Limit Select Distance (default)
==Retain edit-selection when object changes regions==
#Create a box, and remain in edit mode.
#Drag the box onto an adjacent region, and verify it remains selected.
#Deselect, then reselect the box.
#Drag the box back into the region you are in, and verify it remains selected.
==Retain drag-selection when object changes regions==
#Create a box and set it physical.
#Enter Move mode ().
#Drag the box up into the air ( drag upwards) then drag the box onto an adjacent region, and verify the box remains selected and suspended in the air.
#Release the mouse button and verify the box falls to the ground
#Drag the box back into the region you are in, and verify it remains selected.
#Delete the box.
==Selection after unlinking==
===Unlinking whole set===
#Link 3 boxes together.
#Select the object and unlink it.
#Verify all 3 prims are selected.
===Unlinking piece(s) from linked set===
#Link 4 boxes together.
#In the Edit window, enable "Edit linked parts"
#Select two child prims and unlink them.
#Verify the two prims are unlinked and remain selected.
==Max number of selected prims==
There is currently no hard-coded limit to the number of selected prims.
==Focus on selection==
#Close your chat bar.
#Create several boxes then drag-select them.
#Press H. (or choose Tools menu > Focus on Selection)
#Verify your camera rotates to center on the group of objects.
==Zoom to Selection==
#Close your chat bar.
#Create several boxes then drag-select them.
#Press Shift-H. (or choose Tools menu > Zoom to Selection)
#Verify your camera rotates and zooms to center on the group of objects. (The objects should fill the center 1/3 of the screen.)