# How to generate a ScriptNode to the Polyscope program tree from a URCap?

**URL:** <https://forum.universal-robots.com/t/how-to-generate-a-scriptnode-to-the-polyscope-program-tree-from-a-urcap/8883>\
**Category:** URScript\
**Created:** [September 22, 2020, 7:24am UTC](https://forum.universal-robots.com/t/how-to-generate-a-scriptnode-to-the-polyscope-program-tree-from-a-urcap/8883 "2020-09-22T07:24:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon19074481](https://avatars.discourse-cdn.com/v4/letter/a/67e7ee/32.png) [@anon19074481](https://forum.universal-robots.com/u/anon19074481)\
**Post date:** [September 22, 2020, 7:24am UTC](https://forum.universal-robots.com/t/how-to-generate-a-scriptnode-to-the-polyscope-program-tree-from-a-urcap/8883/1 "2020-09-22T07:24:59Z")

</div>

Hello,

I have this code line where i want to add a scriptNode with a script to set a boolean true. But I can’t find the scriptNode in the addchild() command. So is there a way to go around this?

As you can se now I’m just using commentNode with a text to make the (user) add the scriptNode by himself and put in the right script.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/universal_robots/original/2X/e/e1b3cb9766bf6f6438a8dadf71058253ca9d34fc.png)

Thanks in advance!

Best regards Martin

---

<div class="post-metadata">

**Author:** ![Ebbe](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/ebbe/32/1413_2.png) [@Ebbe](https://forum.universal-robots.com/u/Ebbe)\
**Post date:** [September 22, 2020, 10:09am UTC](https://forum.universal-robots.com/t/how-to-generate-a-scriptnode-to-the-polyscope-program-tree-from-a-urcap/8883/2 "2020-09-22T10:09:43Z")

</div>

Hi Martin,

The scriptNode is currently not available. As a workaround you can either add an assignmentNode, to do the job or make your own implementation.

Ebbe

---

<div class="post-metadata">

**Author:** ![anon19074481](https://avatars.discourse-cdn.com/v4/letter/a/67e7ee/32.png) [@anon19074481](https://forum.universal-robots.com/u/anon19074481)\
**Post date:** [September 22, 2020, 10:14am UTC](https://forum.universal-robots.com/t/how-to-generate-a-scriptnode-to-the-polyscope-program-tree-from-a-urcap/8883/3 "2020-09-22T10:14:34Z")

</div>

okay, thank you so much.

Martin
