# Exported Mesh - polygon selection / control

**URL:** <https://forum.babylonjs.com/t/exported-mesh-polygon-selection-control/44546>\
**Category:** Questions\
**Created:** [September 29, 2023, 3:48am UTC](https://forum.babylonjs.com/t/exported-mesh-polygon-selection-control/44546 "2023-09-29T03:48:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adam\_A](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/adam_a/32/35295_2.png) [@Adam\_A](https://forum.babylonjs.com/u/Adam_A)\
**Post date:** [September 29, 2023, 3:48am UTC](https://forum.babylonjs.com/t/exported-mesh-polygon-selection-control/44546/1 "2023-09-29T03:48:21Z")

</div>

I ‘imported’ a mesh. Each polygon has a name ID.  
I know how to control it using html with a button element:

> var myBtn = document.createElement(‘button’); //button object

> let myMesh = scene.getMeshByName(“my\_mesh”); //declaring mesh by ID name

I am trying to have a onRollOver, onClick effect on the polygon itself so it is both targeted and reacts like changing color or popping up text, rather than using an html button.

Thanks! 🙂

---

<div class="post-metadata">

**Author:** ![Evgeni\_Popov](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/evgeni_popov/32/4432_2.png) [@Evgeni\_Popov](https://forum.babylonjs.com/u/Evgeni_Popov)\
**Post date:** [September 29, 2023, 9:45am UTC](https://forum.babylonjs.com/t/exported-mesh-polygon-selection-control/44546/2 "2023-09-29T09:45:08Z")

</div>

Maybe this thread can help regarding the highlighting effect on mouse hover?

> [@Highlighting an imported object with mouse over](https://forum.babylonjs.com/t/highlighting-an-imported-object-with-mouse-over/26340):
>
> Hi, I’m not far away here from getting it right but I can’t seem to trigger the highlight on the imported object. It works on Babylon meshes as per this example: [https://playground.babylonjs.com/#Y4VF2N#13](https://playground.babylonjs.com/#Y4VF2N#13) but the same doesn’t seem to want to work for my example: [https://playground.babylonjs.com/#9Z476P#4](https://playground.babylonjs.com/#9Z476P#4) Any help would be greatly appreciated.

A simpler one:

> **[Babylon.js Playground](https://www.babylonjs-playground.com/#21YCLG%2361)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL 3D scenes
