# outlinePass with transform control

**URL:** <https://discourse.threejs.org/t/outlinepass-with-transform-control/18722>\
**Category:** Questions\
**Tags:** transform-controls, outlinepass, outline\
**Created:** [September 15, 2020, 12:17pm UTC](https://discourse.threejs.org/t/outlinepass-with-transform-control/18722 "2020-09-15T12:17:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![RAUMIK\_RANA](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/raumik_rana/32/12395_2.png) [@RAUMIK\_RANA](https://discourse.threejs.org/u/RAUMIK_RANA)\
**Post date:** [September 15, 2020, 12:17pm UTC](https://discourse.threejs.org/t/outlinepass-with-transform-control/18722/1 "2020-09-15T12:17:10Z")

</div>

I am using outlinePass for outline my mesh object.  
I added mesh into outlinePass.selectedObjects array.  
Then I also print that value to confirm there is only one mesh in that array.  
but when I add transformcontols on mesh, transformControls also has outline as shown in Image.  
is there any way to remove outline from tranformControls line

 ![outline](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/2X/3/3a4e0220e5bbadc3582c65f9bbda68279b7617f9.png)

---

<div class="post-metadata">

**Author:** ![Mugen87](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/mugen87/32/5645_2.png) [@Mugen87](https://discourse.threejs.org/u/Mugen87)\
**Post date:** [September 15, 2020, 3:47pm UTC](https://discourse.threejs.org/t/outlinepass-with-transform-control/18722/2 "2020-09-15T15:47:29Z")

</div>

I’m afraid there is no option to control whether an object should be affected by the outline pass or not. However, you might want to just detach `TransformControls` when the outline pass is processed and then attach it back. This requires though a custom modification of `TransformControls`.

---

<div class="post-metadata">

**Author:** ![RAUMIK\_RANA](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/raumik_rana/32/12395_2.png) [@RAUMIK\_RANA](https://discourse.threejs.org/u/RAUMIK_RANA)\
**Post date:** [September 16, 2020, 8:07am UTC](https://discourse.threejs.org/t/outlinepass-with-transform-control/18722/3 "2020-09-16T08:07:05Z")

</div>

ohk thanks for the help
