Customizing an Asset Script
From the Script Menu at the top of the Asset Viewer, a new custom script can be created. It will allow you to add scripted control over the properties of the underlying Asset.
The most typical way to customize this would be to implement the standard Godot method _physics_process() and add logic into it to manipulate animation states based on user input, enemy AI, etc.
Controlling Asset Animation via Script
The main properties for controlling animation are exposed in the TbgDynamicAsset script
motionMode - set the desired mode, eg “Walk”, “Run” etc.
facing - set the desired orientation, eg “Left, Right” etc.
motionConfig - this is normally set to the ‘best match’ for the previous two properties, but can also be set manually in order to set a custom value. For more details on the properties of this object, search Godot script help for TbgMotionConfig