# Python access to Create and Place fiducial?

**URL:** <https://discourse.slicer.org/t/python-access-to-create-and-place-fiducial/5029>\
**Category:** Support\
**Created:** [December 10, 2018, 3:36pm UTC](https://discourse.slicer.org/t/python-access-to-create-and-place-fiducial/5029 "2018-12-10T15:36:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hherhold](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/hherhold/32/12199_2.png) [@hherhold](https://discourse.slicer.org/u/hherhold)\
**Post date:** [December 10, 2018, 3:36pm UTC](https://discourse.slicer.org/t/python-access-to-create-and-place-fiducial/5029/1 "2018-12-10T15:36:56Z")

</div>

Hi all,

I’d like to make a keyboard shortcut for Create-And-Place Fiducial using some python in my .slicerrc as described in the Script Repository. I’m placing a lot of fiducials in some scans and taking the time to go back up and click the button actually adds up when you do it a couple hundred times a day.

How to I get access to the action for the toolbar button to activate the slot (or just call it directly) from python? I’ve looked through slicer.app.[…] but I’ve been unable to find it - can someone point me in the right direction?

Thanks a lot!!

-Hollister

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [December 10, 2018, 3:48pm UTC](https://discourse.slicer.org/t/python-access-to-create-and-place-fiducial/5029/2 "2018-12-10T15:48:38Z")

</div>

See script repository example: [https://www.slicer.org/wiki/Documentation/Nightly/ScriptRepository#Switching\_to\_markup\_fiducial\_placement\_mode](https://www.slicer.org/wiki/Documentation/Nightly/ScriptRepository#Switching_to_markup_fiducial_placement_mode)

---

<div class="post-metadata">

**Author:** ![hherhold](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/hherhold/32/12199_2.png) [@hherhold](https://discourse.slicer.org/u/hherhold)\
**Post date:** [December 10, 2018, 4:00pm UTC](https://discourse.slicer.org/t/python-access-to-create-and-place-fiducial/5029/3 "2018-12-10T16:00:04Z")

</div>

_Doh!_

I _knew_ it was in there somewhere!

Thanks, Andras!!!
