# CustomGripObject Gumball orientation

**URL:** <https://discourse.mcneel.com/t/customgripobject-gumball-orientation/154538>\
**Category:** Rhino Developer\
**Tags:** windows, gumball, customgrips\
**Created:** [February 8, 2023, 10:25am UTC](https://discourse.mcneel.com/t/customgripobject-gumball-orientation/154538 "2023-02-08T10:25:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![p.stragliotto](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/p.stragliotto/32/702136_2.png) [@p.stragliotto](https://discourse.mcneel.com/u/p.stragliotto)\
**Post date:** [February 8, 2023, 10:25am UTC](https://discourse.mcneel.com/t/customgripobject-gumball-orientation/154538/1 "2023-02-08T10:25:12Z")

</div>

Hello,

I have implemented a `CustomGripObject` subclass to use with a custom edit command on **mesh** objects.

As far as I can understand, grip objects do not have an inherent **plane** information (since they consist of a simple point, and that’s geometrically logical).

But I’ve also seen that when activating grips on a **SubD** and selecting a grip, the **gumball** is oriented according to the _normal of the SubD surface_.

This does not happen when selecting grips on meshes.

 ![Mesh](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/4/5/9/459cf06e20c84bacd11fd2647eb0457429622aed.png)  
 ![subD](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/f/9/f/f9fbe293a0d90253d0a825d5394b53bd88a3a4ef.png)

I would like to achieve the same result (i.e. orient the gumball according to the mesh normal on the selected grip location): is there a way to do this? maybe some trick on the CustomGrip objects?

Thank you.

---

<div class="post-metadata">

**Author:** ![Tom\_P](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/tom_p/32/766520_2.png) [@Tom\_P](https://discourse.mcneel.com/u/Tom_P)\
**Post date:** [February 8, 2023, 11:23am UTC](https://discourse.mcneel.com/t/customgripobject-gumball-orientation/154538/2 "2023-02-08T11:23:53Z")

</div>

changed category to “Rhino Developer”

@p.stragliotto  
you are working with c# / .net / Rhinocommon ?

did you see this topic:

> [@Move Points In Plugin The Same Way As Rhino Interface](https://discourse.mcneel.com/t/move-points-in-plugin-the-same-way-as-rhino-interface/92049):
>
> Hello All, I am working on a plugin that involves moving points on a mesh. Is it possible for a plugin to support a flow such as: The user selects a point (1 point selected) The user moves selected point The user selects another point (2 points selected now) The user moves both points. User Confirms Moves (Edit: Not necessary) I would also like for a user to be able to deselect any selected points as well. Ultimately I want to do this with no prompts to the user in between the steps laid ou…

---

<div class="post-metadata">

**Author:** ![p.stragliotto](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/p.stragliotto/32/702136_2.png) [@p.stragliotto](https://discourse.mcneel.com/u/p.stragliotto)\
**Post date:** [February 8, 2023, 3:34pm UTC](https://discourse.mcneel.com/t/customgripobject-gumball-orientation/154538/3 "2023-02-08T15:34:07Z")

</div>

Thank you @Tom_P

yes, I’m using RhinoCommon in a C#/.NET plugin project.

The point is that I do not intend to implement a custom Gumball, but rather make the default gumball “aware” of the grips’ orientation, based on the underlying mesh.

Maybe I’m trying to get a result which is not achievable with the current RhinoCommon API.

---

<div class="post-metadata">

**Author:** ![Tom\_P](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/tom_p/32/766520_2.png) [@Tom\_P](https://discourse.mcneel.com/u/Tom_P)\
**Post date:** [February 8, 2023, 3:50pm UTC](https://discourse.mcneel.com/t/customgripobject-gumball-orientation/154538/4 "2023-02-08T15:50:07Z")

</div>

@dale should know if the necessary classes are exposed to Rhinocommon.

---

<div class="post-metadata">

**Author:** ![Wiley](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/wiley/32/513037_2.png) [@Wiley](https://discourse.mcneel.com/u/Wiley)\
**Post date:** [March 7, 2023, 9:37pm UTC](https://discourse.mcneel.com/t/customgripobject-gumball-orientation/154538/5 "2023-03-07T21:37:30Z")

</div>

Is there any follow up on this?  
I also encounter some problems with CustomGripObject. None of the events are triggering when I call all the CustomGripObject inside a CustomObjectGrips

> [@Short Description fails to register with CustomObjects (RhinoCommon)](https://discourse.mcneel.com/t/short-description-fails-to-register-with-customobjects-rhinocommon/152504/7):
>
> [RH-72837](https://mcneel.myjetbrains.com/youtrack/issue/RH-72837) is fixed in the latest [WIP](https://discourse.mcneel.com/t/welcome-to-serengeti/9612)
