Home Coding, Scripting, Shaders

[Maya] Script for moving only the x of a pivot to ws 0

So I recognize that this script

xform -ws -pivots 0 0 0;

Moves the selected objects pivot to the world space center and that the command expects 3 arguments, so if I only wanted this to move the pivots x to ws 0, how would I go about filling in the other two arguments. I am not a Mel scripter, just a 3d animation student who is just getting into scripting tonight to solve this issue without creating a plane, rotating it and bringing it up, snapping the pivot to a vert everytime I want to mirror something the duplicate and x -1 way with a pivot between the two objects. any help or advice is appreciated.

Replies

Sign In or Register to comment.