# Can I run Python Script from the Picker?

**URL:** <https://kangaroobuilder.discourse.group/t/can-i-run-python-script-from-the-picker/27>\
**Category:** General\
**Created:** [August 22, 2025, 7:22am UTC](https://kangaroobuilder.discourse.group/t/can-i-run-python-script-from-the-picker/27 "2025-08-22T07:22:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![snailrider](https://avatars.discourse-cdn.com/v4/letter/s/b782af/32.png) [@snailrider](https://kangaroobuilder.discourse.group/u/snailrider)\
**Post date:** [August 22, 2025, 7:22am UTC](https://kangaroobuilder.discourse.group/t/can-i-run-python-script-from-the-picker/27/1 "2025-08-22T07:22:08Z")

</div>

In the picker it’s calling the fkik scripts, can I make it run some custom scripts such as keying a animation control?

---

<div class="post-metadata">

**Author:** ![ThomasBittner](https://avatars.discourse-cdn.com/v4/letter/t/f08c70/32.png) [@ThomasBittner](https://kangaroobuilder.discourse.group/u/ThomasBittner)\
**Post date:** [August 22, 2025, 7:53am UTC](https://kangaroobuilder.discourse.group/t/can-i-run-python-script-from-the-picker/27/2 "2025-08-22T07:53:25Z")

</div>

It’s doable!  
But it’s a bit hidden. When you are in Edit mode, right click on the icon and click **Set Objects (adjust list)**

Here you normally have a node string in each line, but if you start the line with $, you can write python code.

So for example the line could look like this:

```auto
$cmds.select('[NAMESPACE]armGlobal_l_ctrl')

```

He will substitute [NAMESPACE] with the actual namespace that’s specified in the top of the UI.

Keep in mind the code needs to be in one line. So if you have more lines, just put them in one line, and if needed separate the python commands with ;

---

<div class="post-metadata">

**Author:** ![snailrider](https://avatars.discourse-cdn.com/v4/letter/s/b782af/32.png) [@snailrider](https://kangaroobuilder.discourse.group/u/snailrider)\
**Post date:** [August 26, 2025, 3:51pm UTC](https://kangaroobuilder.discourse.group/t/can-i-run-python-script-from-the-picker/27/3 "2025-08-26T15:51:06Z")

</div>

It is working now thanks!

It was an adventure 😄 but works now

I made it import another function

```auto
$from kangarooAnimation import keysetter; keysetter.setKeys('[NAMESPACE]')

```

because I cannot put the script in just one line, is too complex for that

---

<div class="post-metadata">

**Author:** ![ThomasBittner](https://avatars.discourse-cdn.com/v4/letter/t/f08c70/32.png) [@ThomasBittner](https://kangaroobuilder.discourse.group/u/ThomasBittner)\
**Post date:** [August 26, 2025, 4:02pm UTC](https://kangaroobuilder.discourse.group/t/can-i-run-python-script-from-the-picker/27/4 "2025-08-26T16:02:43Z")

</div>

Hehe, good to hear that!

Originally this $ thing wasn’t intended for other custom scripts. But great that it still works!  
Maybe in future we’ll simplify this process a bit more so we can paste whole scripts into that UI
