# Select point (user input) on 3D surface for 2000 surfaces automatically opening after user selects a point

**URL:** <https://discourse.slicer.org/t/select-point-user-input-on-3d-surface-for-2000-surfaces-automatically-opening-after-user-selects-a-point/29164>\
**Category:** Development\
**Tags:** python, automation\
**Created:** [April 27, 2023, 3:45am UTC](https://discourse.slicer.org/t/select-point-user-input-on-3d-surface-for-2000-surfaces-automatically-opening-after-user-selects-a-point/29164 "2023-04-27T03:45:39Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![RafaelPalomar](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/rafaelpalomar/32/1436_2.png) [@RafaelPalomar](https://discourse.slicer.org/u/RafaelPalomar)\
**Post date:** [May 2, 2023, 10:52am UTC](https://discourse.slicer.org/t/select-point-user-input-on-3d-surface-for-2000-surfaces-automatically-opening-after-user-selects-a-point/29164/2 "2023-05-02T10:52:34Z")

</div>

This could be easily done through a scripted module ([Module Overview — 3D Slicer documentation](https://slicer.readthedocs.io/en/latest/developer_guide/module_overview.html#scripted-modules)). You could have a a user interface featuring (1) a directory selector to point to where your `.ply` files lie and (2) a “Next” button that will save the recorded data and load the next model in the dataset. In addition, you will probably want to add some other widgets to select the output file for the results, etc.

You can use [GitHub - RafaelPalomar/BulkLabelStatistics: Module to compute labelmap statistics in bulk](https://github.com/RafaelPalomar/BulkLabelStatistics) as inspiration for batch loading data from a folder.

When it comes to the selection of one point, you could use callbacks to control the workflow for placing one (and only one) point. This topic might be helpful for that: [How to access Node in Scene?](https://discourse.slicer.org/t/how-to-access-node-in-scene/27197). Alternatively, I would suggest to use the Template Markups ([Markups — 3D Slicer documentation](https://slicer.readthedocs.io/en/latest/user_guide/modules/markups.html#creating-template-landmarks)) to control the workflow and limit the point acquisition to 1.

---

_[View the full topic](https://discourse.slicer.org/t/select-point-user-input-on-3d-surface-for-2000-surfaces-automatically-opening-after-user-selects-a-point/29164)._
