Universal Robots+

Is it possible create my own URscript function from urcap?

I want to generate a trajectory for my application and urscript does not allow creating a dynamic array(i=100 a[i]). Thus I will try to use urcap java environment for creating the array and trajectory. Is it possible or not?

There was a generating urscript for advanced users in this page https://plus.universal-robots.com/getting-started/develop-a-urcap/