我正在使用用iPhone X记录面部动画 4学习虚幻引擎教程,并成功地捕捉和展示了我的面部运动。
但是当我的脸不在镜头的时候,编辑的姿势就会卡在最后一个镜头里。
如何才能检测到动画数据的丢失,以便播放预先录制的动画?
发布于 2022-04-14 03:51:48
我已经想明白了。只需从ILiveLinkClient::IsSubjectValid(SubjectName);源代码中的LiveLinkPlugin中使用c++方法,或将其导出到蓝图:
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;
}https://stackoverflow.com/questions/71481568
复制相似问题