No “onClick” section in the Properties panel
How to add to:
Dialogue nodes
You can add the commands directly into a dialogue node or into the dialogue text (found in the properties section). Here’s an example:
[action:"forceCameraShot", shotName:"LS"] |
Script Editor
You can add the commands into the script editor at the bottom of the screen. Here’s an example:
LB.Actions.forceCameraShot({duration:"3000", animationTime:"1000", shotName:"BCU"}); |
onClick
To add the action to the onClick event of an asset, select the asset you want to click on in order to force the camera shot, then add the command into the onClick section in the Properties panel
{"action":"forceCameraShot", "shotName":"BCU"} |
Troubleshooting
No “onClick” section in the Properties panel
The onClick section requires a CAF (Custom Asset Field) to have been created manually. If it is not present, you can add it to your CMP.
Select Project > Project Settings in the top toolbar. The following dialog will appear:
- Click the “Custom Asset Fields” tab
- Click on the tab you want to add the CAF to (in this case it’s to an item, but you could add it to an actor, location, etc depending on your needs for the scenario)
- Click on the “Add New Field” button, and fill in as follows:
- Title: onClick
- Type: Text
- Press OK to save.