Skip to content

Commit f959d59

Browse files
author
Roberto De Ioris
authored
Update YourFirstAutomatedPipeline.md
1 parent 05e8483 commit f959d59

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

tutorials/YourFirstAutomatedPipeline.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,10 @@ blend_space_factory.TargetSkeleton = slicer_mesh.Skeleton
415415
# create the asset
416416
slicer_locomotion = blend_space_factory.factory_create_new('/Game/Kaiju/Slicer/Animations/slicer_locomotion')
417417

418+
ue.open_editor_for_asset(slicer_locomotion)
419+
418420
# set blend parameters
421+
slicer_locomotion.modify()
419422
slicer_locomotion.BlendParameters = BlendParameter(DisplayName='Speed', Min=0, Max=300, GridNum=2)
420423

421424
# assign animations
@@ -425,11 +428,12 @@ slicer_locomotion.BlendParameters = BlendParameter(DisplayName='Speed', Min=0, M
425428
# mark them as 'valid' explicitely !
426429
slicer_locomotion.SampleData = [BlendSample(Animation=animation_idle, SampleValue=FVector(0, 0, 0), bIsValid=True, RateScale=1), BlendSample(Animation=animation_walk, SampleValue=FVector(150, 0, 0), bIsValid=True, RateScale=1), BlendSample(Animation=animation_run, SampleValue=FVector(300, 0, 0), bIsValid=True, RateScale=1)]
427430

428-
# save
429-
slicer_locomotion.save_package()
430-
431431
# compute blend space and update the editor preview
432432
slicer_locomotion.post_edit_change()
433+
434+
slicer_locomotion.save_package()
435+
436+
ue.close_editor_for_asset(slicer_locomotion)
433437
```
434438

435439
![The Kaiju Locomotion BlendSpace](https://github.com/20tab/UnrealEnginePython/blob/master/tutorials/YourFirstAutomatedPipeline_Assets/slicer_locomotion.png)

0 commit comments

Comments
 (0)