How to input params in MotionMatch in C++ (Pose Search Plugin)?

Hi all!
I want to call MotionMatch node of the Pose Search Plugin (screen 1) from the code, but the code requires the ContinuingProperties and Future parameters as mandatory (screen 2, I’ll attach as a separate message). However, they are not specified in the node in BP.

My code

TArray<UAnimMontage*> validMontages = <...>

<...>

FPoseSearchBlueprintResult poseSearchResult;
UPoseSearchLibrary::MotionMatch(GetMesh()->GetAnimInstance(), validMontages, FName("PoseHistory"), <???>, <???>, poseSearchResult);

How can I avoid input them in the code or where can I get them from?

Screen 2

Hey,

May you be great.

So I was looking at that library and I saw there are a bunch of overloading for this function, so chose the one which ContinuingProperties and Future are passed by ref.

I mean just pass an empty FPoseSearchContinuingProperties and FPoseSearchFutureProperties

FPoseSearchContinuingProperties ContinuingProperties;
FPoseSearchFutureProperties FutureProperties;

UPoseSearchLibrary::MotionMatch(Params, ContinuingProperties, FutureProperties, ResultParam);

I think that may work just fine.

Bye.

Hi.
I’ve already tried this. Unfortunately, it doesn’t work.

At the moment I have done a workaround. I have made a function that I will implement in the BP, and in the code I will simply call it.
I have no other ideas yet.

Hey,

That’s crazy, because I have compiled here. Everything seems to be great.

But ok, I happy you’ve found a workaround.

Bye.