Not that I am aware of can you define a "Feature" within script, however, if you define a feature in the installation tab and check the variable box under the main waypoint of the feature then you can assign a new pose to that feature during program execution and the feature would then be modified until the next program execution or whenever you changed it again. We have done this with vision, define a point and then move it around based on what the camera was telling us.
Hello,
is it possible to define a pose as a feature in URScript?