gpt4 book ai didi

c++ - 将日志消息打印到 MotionBuilder

转载 作者:塔克拉玛干 更新时间:2023-11-03 02:22:31 29 4
gpt4 key购买 nike

我想使用 MotionBuilder 2013 API 将消息从 C++ 记录到 MotionBuilder 控制台。

Example image

我想在打印“Hello”的地方显示一条消息。或者,如果这在 motion builder 的其他地方是不可能的。该消息已通过 Python 中的打印语句显示。

在 Maya 中,您使用:MGlobal::displayInfo(msg);

在 3ds Max 中,您可以使用:

the_listener->edit_stream->wputs(wcharConverter);
the_listener->edit_stream->flush();

是否有 Action 生成器版本?我已经搜索了 api,但似乎找不到调用。 http://docs.autodesk.com/MB/MB2013/ENU/MotionBuilder-SDK-Documentation/index.html

最佳答案

你试过FBTrace("Message")了吗?

在以下位置查看文档:C++ API -> 模块 -> The Trace utility functions

关于c++ - 将日志消息打印到 MotionBuilder,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30986020/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com