FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [View Raw Code]   [Original HTTPS Page]

UnrealEnginePython/docs/Animation_API.md at develop · breezonto/UnrealEnginePython · GitHub

Repository navigation

Latest commit

 

History

History
20 lines (13 loc) · 463 Bytes
  1. UnrealEnginePython
  2. docs

Animation_API.md

File metadata and controls

20 lines (13 loc) · 463 Bytes

The Animation API

You can control animation blueprints variables and events easily:

from unreal_engine.classes import SkeletalMeshComponent

# get a reference to the skeletal mesh
skeletal = self.uobject.get_component_by_type(SkeletalMeshComponent)
# get a reference to the animation class
animation = skeletal.get_anim_instance()

# set a variable
animation.set_property('Speed', 17.0)

# trigger a custom event
animation.call('AttackWithSword')

Back | FazBrowse Home | New Git URL