Adding a Send event to embedded scene action

Use the Send Event to Embedded Scene action to initiate a specific event in an embedded scene

About this task

The Send Event to Embedded Scene action generates an event with a specified ID and sends it to the specified embedded scene.

To add a Send event to embedded scene event action to an object:

Procedure

  1. Select the object in the editor window. Double-click the event that you want to trigger the action from the Events view. The [objectname] Behavior window opens. Click the Add icon. The Add New Action window opens.
  2. Select Send Event to Embedded Scene in the actions tree.
    Note: To quickly find the required event action, type the name of the action in the filter text field.
  3. Click Next. A dialog requesting the Send Event to Embedded Scene action parameters opens.
  4. Specify at least one embedded scene in the Target scenes field.
  5. Optional: In the Result options section, specify the global parameter to be used as an external event identifier in the target scene.
    You can add a new parameter by clicking the Add New Parameter .
    Note: The ExternalEventID global parameter is used by default.
  6. Select the parameter that you want to use from the Result parameter drop down lists.
  7. Specify a unique event identifier in the Event ID field and click Finish. The Add New Action window closes.
  8. From the [objectname] Behavior window, click the Apply button to apply all actions that have been added for the event.
  9. Click OK to close the [objectname] Behavior window.
  10. From the Project Explorer view, select a scene connected with the target embedded scene.
  11. From the Events view select the ExternalEvent item and double-click it.

    In the [objectname] Behavior window, set up the event actions.

    Consider the example:

    • You have the scenes: Scene1 and Scene2 and the buttons: Button1 and Button2 on Scene1.
    • Add the following actions to the buttons: Button1 action is ExportToPDF and Button2 action is SendEmail.
    • Set the values of Event ID, type any string there, for example, Button1 Event ID is Btn1ExportToPDF and Button2 Event ID is Btn2SendEmail.
    • Add different ExternalEvent actions to the Scene2 and set the following conditions of the ExternalEventID parameters:
      Action Condition
      ExportToPDF =ExternalEventID ='Btn1ExportToPDF'
      SendEmail =ExternalEventID=' Btn2SendEmail '

    These actions will be applied to the content of the Scene2.

    Click OK to close the [objectname] Behavior window.