# Moving pivot in one axis not working

**URL:** https://forum.highend3d.com/t/moving-pivot-in-one-axis-not-working/576
**Category:** Maya
**Tags:** mel
**Created:** [February 18, 2011, 1:41pm UTC](https://forum.highend3d.com/t/moving-pivot-in-one-axis-not-working/576 "2011-02-18T13:41:36Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![perfect\_paradigm](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/p/6f9a4e/32.png) [@perfect\_paradigm](https://forum.highend3d.com/u/perfect_paradigm)
#### Post date: [February 18, 2011, 1:41pm UTC](https://forum.highend3d.com/t/moving-pivot-in-one-axis-not-working/576/1 "2011-02-18T13:41:36Z")

</div>

This works:&nbsp;

move -x 0 -y 0 -z 0 pCube.scalePivot pCube.rotatePivot ;

This doesn't:&nbsp;

move -x 0 pCube.scalePivot pCube.rotatePivot ;&nbsp;

It throws the error: Invalid argument: pCube.scalePivot

I've even tried copying everything from when echo all commands is on and it still throws that error.&nbsp;

---

<div class="post-metadata">

### Author: ![joojaa](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/j/5daacb/32.png) [@joojaa](https://forum.highend3d.com/u/joojaa)
#### Post date: [February 18, 2011, 2:27pm UTC](https://forum.highend3d.com/t/moving-pivot-in-one-axis-not-working/576/2 "2011-02-18T14:27:51Z")

</div>

Yes they are not actually transforms so you must be fully qualified triplet, they are sort of aliases you can move\*. Firt querry then assign.

\*admittedly this is a design oversight.

---

<div class="post-metadata">

### Author: ![perfect\_paradigm](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/p/6f9a4e/32.png) [@perfect\_paradigm](https://forum.highend3d.com/u/perfect_paradigm)
#### Post date: [February 18, 2011, 2:59pm UTC](https://forum.highend3d.com/t/moving-pivot-in-one-axis-not-working/576/3 "2011-02-18T14:59:54Z")

</div>

Thanks for the reply Joojaa.&nbsp;How would I querry it? I couldn't get the query flag to work.&nbsp;

What's weird is when it's echoed in the script editor it is using one axis flag but throws an error when I try to.&nbsp;

---

<div class="post-metadata">

### Author: ![joojaa](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/j/5daacb/32.png) [@joojaa](https://forum.highend3d.com/u/joojaa)
#### Post date: [February 18, 2011, 4:08pm UTC](https://forum.highend3d.com/t/moving-pivot-in-one-axis-not-working/576/4 "2011-02-18T16:08:37Z")

</div>

use the xform command

---

<div class="post-metadata">

### Author: ![perfect\_paradigm](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/p/6f9a4e/32.png) [@perfect\_paradigm](https://forum.highend3d.com/u/perfect_paradigm)
#### Post date: [February 19, 2011, 8:20pm UTC](https://forum.highend3d.com/t/moving-pivot-in-one-axis-not-working/576/5 "2011-02-19T20:20:59Z")

</div>

Thanks Joojaa. I was able to easily write several useful scripts after looking into xform.🙂
