Maya C++ API 是否根本不允许访问某些工具?
Does Maya C++ API simply not give access to some tools?
例如,在 Maya 中,我们在 UV > Planar
中有 Planar UV Mapping
工具。我还没有在 Maya 的 C++ API 中找到此工具的 class/function。
我唯一的办法是通过 executeCommand
调用 mel
版本,还是这些工具在 C++ API 中公开?
您可能看错了,uv planner 也是 polyProjection command. If you want to access those then you need to create it from scratch I think. using MfnMesh etc.. there are few example already available net to give some basic idea's how to do that. Here is one which not really a uv stuff but it will give you idea how it can be done And there are some examples in maya devkit 的工具集包装器。
希望对您有所帮助
例如,在 Maya 中,我们在 UV > Planar
中有 Planar UV Mapping
工具。我还没有在 Maya 的 C++ API 中找到此工具的 class/function。
我唯一的办法是通过 executeCommand
调用 mel
版本,还是这些工具在 C++ API 中公开?
您可能看错了,uv planner 也是 polyProjection command. If you want to access those then you need to create it from scratch I think. using MfnMesh etc.. there are few example already available net to give some basic idea's how to do that. Here is one which not really a uv stuff but it will give you idea how it can be done And there are some examples in maya devkit 的工具集包装器。
希望对您有所帮助