Maya API 到 C++

发布于 2024-08-19 10:01:30 字数 284 浏览 6 评论 0原文

我正在阅读有关 Maya API 到 C++ 的内容,但不太理解这个想法。

实现 API 后,我可以在 Visual Studio 的 3D 世界中创建环境或 GUI 吗?

这个问题与我之前关于 Maya API 的问题有关。 问题

如果有人能给我一个好的开始的地方,那就太好了。

谢谢, 奥德.

I was reading about the Maya API to C++ and didn't quite understand the idea.

Upon implementing the API, Can I create an environment, or a GUI in 3D world in Visual Studio?

This question is related to my previous one about the Maya API.
Question

If someone could give me a good place to begin, it would be great.

Thanks,
Oded.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

风吹过旳痕迹 2024-08-26 10:01:30

您无法在 Maya 之外创建 3D 环境,
您还可以使用 API 在 Maya 内执行任何操作。

我建议您从 Maya python API 而不是 c++ 开始,这样更容易,并且需要更少的开发时间。

你可以阅读《完整的 Maya 编程》一书,它的示例是用 c++ 编写的,但如果你了解一些 python,你可以用 python 编写它们。

You can't create 3D environment outside the Maya,
as well as you can do anything inside Maya with the API.

I recommend that you start with Maya python API instead of c++ it's way easier, and takes less development time.

you may read the "Complete Maya Programming" book, its example written in c++, but if you know some python you can write them in python.

回梦 2024-08-26 10:01:30

Maya API 允许您扩展 Maya,您可以选择使用 c++ 或 python(python 只是或多或少地包装相同的 API)。现在,扩展框架主要是让您实现自己的节点、导入器/导出器和动作捕捉设备。 GUI 层保留给脚本组件和 QT,它们都不完全是 Maya APIS 域,但它为您提供了与脚本环境或 QT 相关的钩子。

至于确切的问题,你可以创建一个 GUI 吗?是的,你可以获取 QT 框架的句柄,但正如我之前所说,它不是 API 的领域。至于环境,是的,你可以这样做,但这不是你作为第一个项目会做的事情。您几乎可以做任何您喜欢的事情,无论是在 Maya 内部,还是与 Maya 外部建立联系,但从实际角度来看,在开始这样做之前,您仍然必须非常熟悉 Maya。该 API 并不完全允许您做任何您喜欢的事情,它有一定的无限制限制,并且与 Mayas 运行时环境对抗并不是一个好主意。

另一方面,如果您想从外部控制 Maya 内的事物,然后创建一个节点或动作捕捉服务器,这就是它们的用途。

就我个人而言,我发现完整的 Maya 编程书在各个级别上都有点误导,但是是的,您可以使用它作为基础。只是对于您要求的任何任务来说都不是很有成效。

Maya API allows you to extend Maya, and you can choose to use either c++ or python (the python just wraps same API, more or less). Now the extension framework is meant for you to implement your own nodes, importers/exporters and motion capture devices, mostly. The GUI layer is reserved to scripting components and QT neither which are exactly Maya APIS domain, tough it gives you hooks to do with with the script environment or QT.

As for the exact question can you create a GUI yes you can get a handle to the QT framework, but as i previously said its not the realm of the API per see. And as for the environment yes you could do that its just not the sort of thing you'd do as your first project. You do almost anything you like, inside or even a connection outside of Maya however from a practical standpoint you'd still have to quite intimately know Maya before starting to do so. The API doesn't exactly allow you to do anything you like it has certain no bounds limitations and its not a good idea to fight Mayas run time environment.

If on the other hand you want to control things within Maya externally then make a node or a motion capture server, that's what they are meant for.

Personally i find the complete Maya programming book a bit misleading on all levels but yes you could use it as basis. Just not terribly fruitful for any of the tasks you ask for.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文