# Toogle between box selection & lasso selection

**URL:** <https://blenderartists.org/t/toogle-between-box-selection-lasso-selection/1518468>\
**Category:** Python Support\
**Created:** [March 2, 2024, 3:49pm UTC](https://blenderartists.org/t/toogle-between-box-selection-lasso-selection/1518468 "2024-03-02T15:49:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adam\_Szalai](https://blenderartists.org/user_avatar/blenderartists.org/adam_szalai/32/902034_2.png) [@Adam\_Szalai](https://blenderartists.org/u/Adam_Szalai)\
**Post date:** [March 2, 2024, 3:49pm UTC](https://blenderartists.org/t/toogle-between-box-selection-lasso-selection/1518468/1 "2024-03-02T15:49:42Z")

</div>

Hey there! 🙂

I tried to figure out but can’t access the" status" of the builtin.select" tools.  
I want to switch between lasso and box as a toogle, if box is selected, then select lasso and vice versa.  
Is there a way to check which tool is active from python please?

Thank You for the answer in advance! 🙂

---

<div class="post-metadata">

**Author:** ![nezumi.blend](https://blenderartists.org/user_avatar/blenderartists.org/nezumi.blend/32/1022118_2.png) [@nezumi.blend](https://blenderartists.org/u/nezumi.blend)\
**Post date:** [March 3, 2024, 12:55am UTC](https://blenderartists.org/t/toogle-between-box-selection-lasso-selection/1518468/2 "2024-03-03T00:55:13Z")

</div>

> **[How to get which tool is active](https://devtalk.blender.org/t/how-to-get-which-tool-is-active/7282)**
>
> This “bpy.ops.wm.tool\_set\_by\_id()” python command can set a tool as active tool. Is there any way to detect which Tool currently is active?

`bpy.context.workspace.tools.from_space_view3d_mode(bpy.context.mode, create=False).idname`

---

<div class="post-metadata">

**Author:** ![Adam\_Szalai](https://blenderartists.org/user_avatar/blenderartists.org/adam_szalai/32/902034_2.png) [@Adam\_Szalai](https://blenderartists.org/u/Adam_Szalai)\
**Post date:** [March 3, 2024, 12:29pm UTC](https://blenderartists.org/t/toogle-between-box-selection-lasso-selection/1518468/3 "2024-03-03T12:29:56Z")

</div>

Thank You, it’s working like a charm!
