# Changing p\[ \] Variable in one Point

**URL:** <https://forum.universal-robots.com/t/changing-p-variable-in-one-point/20072>\
**Category:** URScript\
**Created:** [March 23, 2022, 7:47am UTC](https://forum.universal-robots.com/t/changing-p-variable-in-one-point/20072 "2022-03-23T07:47:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon86108811](https://avatars.discourse-cdn.com/v4/letter/a/3da27b/32.png) [@anon86108811](https://forum.universal-robots.com/u/anon86108811)\
**Post date:** [March 23, 2022, 7:47am UTC](https://forum.universal-robots.com/t/changing-p-variable-in-one-point/20072/1 "2022-03-23T07:47:03Z")

</div>

I’m looking for a solution to remove part of a position.  
For example I have position that is variable. I just want to delete the rotation of az / extract the other x,y,z,ax,ay. Is there a function for this?

---

<div class="post-metadata">

**Author:** ![eric.feldmann](https://avatars.discourse-cdn.com/v4/letter/e/94ad74/32.png) [@eric.feldmann](https://forum.universal-robots.com/u/eric.feldmann)\
**Post date:** [March 23, 2022, 8:18pm UTC](https://forum.universal-robots.com/t/changing-p-variable-in-one-point/20072/2 "2022-03-23T20:18:50Z")

</div>

Pretty sure you can just say something like myPose[5] = 0 and be done. Just use the “Script” node and choose whatever pose you want to change.
