Hello! I'm currently working on a custom C++ shape in Maya that inherits from *MPxSurfaceShape*. My goal is to align the transformation gizmo (move/rotate/scale) with the orientation of the individual components of my shape.
Current Behavior: The transformation gizmo aligns with the orientation of the object, not the individual component(s). Desired Behavior: I want the gizmo to align based on the orientation of the components I'm transforming. There doesn't seem to be any function I can override for this specifically. I tried multiple things: I have overridden *vertexOffsetDirection *and works when transforming along the normal. Sadly not for components. I check the *ApiMeshShape *example but it also doesn't align the gizmo to the component like the basic mesh type does in Maya. I checked *MPxGeometryIterator *and set hasNomals to true, but there is no method for returning normals? I added a *MPxTransform *class but also no help from there as it is only plugs. I checked the rockingChair example too but couldn't find anything. I wonder if it is actually possible. Maybe someone here has more experience with custom shapes? Many thanks Benjamin -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/46c7e954-e16d-4059-b1cc-86b3b350119fn%40googlegroups.com.
