MfnMesh.closestIntersection issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi there,
I'm a new member in this forum and relatively new in the API domain too. I'm facing a very weird problem with the Dependency graph Python plugin that I've written recently. This plugin works absolutely fine on my laptop but crashes Maya on every other computer. I'd been trying to understand what's causing this weird issue but haven't reached anywhere yet. I'm sure someone could really help me with this. I'm using MFnMesh.closestIntersection method.
Let me tell you how this plugin works (when it works on my laptop). The projectNode takes three inputs.
1. Input position
2. target position
3. input mesh
and it has output position. When the value on the projectNode is 0, the outputPosition is set to the InputPosition value.
When the value on the projectNode is 1, the outputPosition is set to targetPosition
But if there's any mesh between inputPosition and the outputPosition then at the value of 1, the outputPosition is set on the hitPoint on the mesh which is returned by the MFnMesh.closestIntersection() method.
To recreate the scenario please download the attached files. Open the projectTest.mb file in Maya.
Change the plugin path in the mayaScriptEditor.txt to point to the downloaded path of the project.py file and then run the text in Maya's python script editor.
The plugin is working on my laptop which is running Windows 8.1 and I'm using Maya 2013.
I'm eagerly waiting for a response. Thanks in advance.