Center pivot, but preserve Y and Z


I want to center a pivot, but only in the X translation. I’ve been looking at xform command to center the pivot but I don’t know how to preserve the Y and Z translations.


Why not just use one xform command to query the Y and Z positions first, then center, and then just move the pivot back to the coordinates you queried before? If you need the X position after centering, you can use another xform to query the X position after using the CenterPivot.


I thought of doing it that way but I wanted to just do it all in one line without another variable. That way works just fine though, thanks.


This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.