To create a data-driven behaviour you must add a Behaviour Component to an object in the scene. This is done through the details panel.
Multiple behaviour components can be added to a single object’s hierarchy. For example, if a robot arm CAD model is imported, separate rotation and translation behaviour components can be added to the object and targerted at different components, such as elbow, shoulder and wrist joint.
All behaviours have some common setup parameters, and some behaviour-specific parameters. Below we cover the setup of the common setup parameters. There are individual sections to cover the behaviour-specific parameters for each behaviour component.
Step-by-Step: Adding a Behaviour
- Select the object to add a behaviour to, either in the world outliner or in the viewport.
- In the Details Panel, click the green Add Component button
- Either scroll down to the section containing the DS BC behaviour components, or shortcut by typing ds to find the components.
- Select the desired DS component. It will be added to the object hierarchy view in the details panel, at the bottom of the hierarchy.
- The new DS component should be highlighted with the name field highlighted and ready to be replaced.
- Optionally enter a reference name such as BC_[target_component] & press enter.
- In the Data Sources section, click the Source name dropdown and choose the desired source.
- Click the Value name dropdown and select the desired value name within the source.
- Set Data Transform as required – more details in the Data Transforms section.
- In the Data-Driven Behaviour section, click the Affected Component dropdown and select the target component within the object that you wish to affect with the behaviour.
- At this point consult the individual behaviour component section for the specific settings of the behaviour you are using (found in this section).