unreal-engine4 - Unreal Live Link Face Plugin: How to detect when the face is out of the camera? - TagMerge
2Unreal Live Link Face Plugin: How to detect when the face is out of the camera?Unreal Live Link Face Plugin: How to detect when the face is out of the camera?

Unreal Live Link Face Plugin: How to detect when the face is out of the camera?

Asked 5 months ago
0
2 answers

I have figured it out. Just use ILiveLinkClient::IsSubjectValid(SubjectName); method from the LiveLinkPlugin source in c++ or export it to Blueprint:

class DAZTOUE4_API UMyBlueprintFunctionLibrary : 
public UBlueprintFunctionLibrary
{
    GENERATED_BODY()

    UFUNCTION(BlueprintCallable, Category = "MyVirtualCharacter")
    static bool IsLiveLinkSubjectValid(const FLiveLinkSubjectName SubjectName);
};

bool UMyBlueprintFunctionLibrary::IsLiveLinkSubjectValid(const FLiveLinkSubjectName SubjectName)
{
    IModularFeatures& ModularFeatures = IModularFeatures::Get();
    if (ModularFeatures.IsModularFeatureAvailable(ILiveLinkClient::ModularFeatureName))
    {
        ILiveLinkClient& LiveLinkClient = ModularFeatures.GetModularFeature<ILiveLinkClient>(ILiveLinkClient::ModularFeatureName);
        return LiveLinkClient.IsSubjectValid(SubjectName);
    }
    return false;
}

Source: link

0

A Live Link Retarget Asset has one function it needs to override:
BuildPoseForSubject(const FLiveLinkSubjectFrame& InFrame, TSharedPtr<FLiveLinkRetargetContext> InOutContext, FCompactPose& OutPose, FBlendedCurve& OutCurve)

Source: link

Recent Questions on unreal-engine4

    Programming Languages