...
Select Object from Interaction has a very specific use case. If there is an object in the scene that contains several of the same types of thing, but you want to specifically target the item that the learner interacted with, this is the resource you need.
Specific exampleExample: in In a food safety scenario there was a step where the learner needed to pull a test strip from a dispenser to test the concentration of their sanitizer. We couldn’t be sure that they would use the first test strip that they chose and if they threw a few on the floor before testing, we did not want them to all change color when the one their hand was dipped in the solution. In this case, we used the “Select Object from Interaction” resource to indicate that the one that was in their hand should be the one that reacts to the next step.
Another example: In the Motive Lab, we have a group of glassware items. For this task, the learner must pick up each piece of glassware, rinse it 3 times with purified (deionized) water and then put it away on the shelf. As an author, you can not predict which glassware item the learner will pick up first. To account for this, you can use the “Select Object from Interaction” resource. This resource waits for the learner to interact with an item and sets that as the “active” prop in the scene. You can see this example at the bottom of this article.
Required Fields
...
Field Name | Description |
---|---|
World Object | Set the object that is currently being interacted with to the world object targeted in this field. |
...
Example in the Headset
This is an advanced example of using this resource. For a full description on the scripting below, you can refer to the course in the Motive Academy, or review this video:
...
In the Motive Lab, the learner is to pick up various glassware pieces and rinse them three times each with water.
...
Add the scene objects to a frame
...
We are going to use two scripts to run this task, though it could be done in one.
The Select Object from Interaction resource, and add the scene objects:
...
In this example, there is a Behaviour Model for the glassware, so it will be added with the “Select Object from Interaction” as the target:
...
Next, the learner will Grasp the glassware:
...
Then the learner will rinse the glassware they are holding and move on to do the same actions with the nextis added into a frame and all the glassware is added:
...
Throughout the script, when there is an option for a Target or World Object, the Select Object from Interaction is used:
...
When the scripting is done, this is what it would look like in the headset:
...
View this video in full screen on Vimeo at this link.