Skip to content

Commit 1584b94

Browse files
author
rdeioris
authored
Update YourFirstAutomatedPipeline.md
1 parent acb96aa commit 1584b94

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

‎tutorials/YourFirstAutomatedPipeline.md‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -630,6 +630,22 @@ bored_state.BoundGraph.set_name('Bored')
630630

631631
![The Kaiju Animation Blueprint States](https://github.com/20tab/UnrealEnginePython/blob/master/tutorials/YourFirstAutomatedPipeline_Assets/slicer_states.png)
632632

633+
634+
We start with the 'Bored' state, as it is a simple one (just play an animation looply)
635+
636+
```python
637+
# The Bored State -> simply play an animation
638+
from unreal_engine.classes import AnimGraphNode_SequencePlayer
639+
from unreal_engine.structs import AnimNode_SequencePlayer
640+
641+
bored_player = bored_state.BoundGraph.graph_add_node(AnimGraphNode_SequencePlayer, -300, 0)
642+
bored_player.Node = AnimNode_SequencePlayer(Sequence=animation_bored, bLoopAnimation=True)
643+
bored_player.node_find_pin('Pose').make_link_to(bored_state.BoundGraph.Nodes[0].node_find_pin('Result'))
644+
```
645+
646+
![The Kaiju Animation Blueprint State Bored](https://github.com/20tab/UnrealEnginePython/blob/master/tutorials/YourFirstAutomatedPipeline_Assets/slicer_states_bored.png)
647+
648+
633649
Put it all in a new Blueprint
634650
-
635651

0 commit comments

Comments
 (0)