# Moving pivot points in MEL

**URL:** https://forum.highend3d.com/t/moving-pivot-points-in-mel/6681
**Category:** Maya
**Tags:** mel
**Created:** [December 3, 2001, 12:09am UTC](https://forum.highend3d.com/t/moving-pivot-points-in-mel/6681 "2001-12-03T00:09:26Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![yns](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/y/ecb155/32.png) [@yns](https://forum.highend3d.com/u/yns)
#### Post date: [December 3, 2001, 12:09am UTC](https://forum.highend3d.com/t/moving-pivot-points-in-mel/6681/1 "2001-12-03T00:09:26Z")

</div>

I'm trying to move a pivot point to an edge(poly)...works like a charm through the interface using the insert mode,"c" key and MMB, but I can't seem to get Maya to recognize that attribute through MEL.

Instruction:  
move -x 0.5 pPlane1.scalePivot pPlane1.rotatePivot ;

Error message:   
// Error: line 14: Invalid argument: pPlane1.scalePivot //

When I set "Echo all commands", and move the pivot via the GUI, and then just copy and paste what's been generated...it still fails.

Any thoughts?

-York

---

<div class="post-metadata">

### Author: ![ame](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/a/3be4f8/32.png) [@ame](https://forum.highend3d.com/u/ame)
#### Post date: [December 3, 2001, 2:07am UTC](https://forum.highend3d.com/t/moving-pivot-points-in-mel/6681/2 "2001-12-03T02:07:38Z")

</div>

> [@](#):
>
> In reply to:   
> I'm trying to move a pivot point to an edge(poly)...works like a charm through the interface using the insert mode,"c" key and MMB, but I can't seem to get Maya to recognize that attribute through MEL.
> 
> Instruction:  
> move -x 0.5 pPlane1.scalePivot pPlane1.rotatePivot ;
> 
> Error message:   
> // Error: line 14: Invalid argument: pPlane1.scalePivot //
> 
> When I set "Echo all commands", and move the pivot via the GUI, and then just copy and paste what's been generated...it still fails.
> 
> Any thoughts?
> 
> -York

to move the pivot point you need to use:

xform -rotatePivot double double double ;

xform -scalePivot double double double ;

or if you want to change both of them at the same times:

xform -pivots double double double ;

Hope this helps,

-a
