A. Create start coroutine
- Last UpdatedJan 20, 2025
- 1 minute read
Copy and paste the coroutine script into your Procedures.xml script file or apm_data_sampleAsset.xml depending on which technique you used.
The details of what the coroutine is providing is described below and represented by the sample script.
-
Use the sample below for the BallBearing procedure. Adjust the values for your implementation.
-
If you have given your AnimationClip a different name than what is shown in this example, then adjust the script to reflect the value.
Create a start coroutine script
Copy and paste the coroutine text into the script.
<!--**************************** BEGIN - START PROCEDURE COROUTINE ***************************************-->
<Coroutine name="launch_proc_BallBearing">
<setfield name="apm_str_simpleAnimationClipEngine.animationClip"
value="Procedure01_Ball_Bearing_Replacement" />
<setfield name="apm_str_simpleAnimationClipEngine.stepFramesSize" value="60" />
<setfield name="toolbar_txt_title.text" value="Ball Bearing Replacement" />
</Coroutine>
<!--*************************** END - START PROCEDURE COROUTINE ******************************************-->
Modify the values
-
Set the name of the procedure’s AnimationClip: this field defines the associated animation clip name.
<setfield name="apm_str_simpleAnimationClipEngine.animationClip"
-
Set Step Frame size: this field describe the frame size for each step.
<setfield name="apm_str_simpleAnimationClipEngine.stepFramesSize" value="60" />
-
Set the title of the procedure to be shown in the user interface.
<setfield name="toolbar_txt_title.text" value="Ball Bearing Replacement" />
-
Set the name of the camera you created for the procedure with a true/false transition animation.