For a fixed waypoint, you should be able to get it’s pose;
But for URScript variables, this should probably happen at runtime in URScript.