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
- 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.
- 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.
- Click Next. A dialog requesting
the Send Event to Embedded Scene action parameters
opens.
- Specify at least one embedded scene in the Target
scenes field.
- 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.
- Select the parameter that you want to use from the Result
parameter drop down lists.
- Specify a unique event identifier in the Event
ID field and click Finish. The Add
New Action window closes.
- From the [objectname] Behavior window,
click the Apply button to apply all actions
that have been added for the event.
- Click OK to close the [objectname]
Behavior window.
- From the Project Explorer view,
select a scene connected with the target embedded scene.
- 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.