Geuse
02-28-2011, 02:50 PM
Hi all!
I have this script I'm writing which is used to align objects/components.
global proc dag_alignMain(string $posNeg, string $axis)
So when running the command it should say:
dag_alignMain "-" "x"
However when adding this to a button in the UI i need to use the command flag as so:
-c "align - x"
But now it won't execute properly and I think I can see why. Is it because of the minus sign I use as a string variable and Maya doesn't understand this? What is the correct way of writing this?
I guess I could switch the plus and minus sign to just "pos" and "neg" but I rather would like to understand the problem and how to solve it.
Thanks!
I have this script I'm writing which is used to align objects/components.
global proc dag_alignMain(string $posNeg, string $axis)
So when running the command it should say:
dag_alignMain "-" "x"
However when adding this to a button in the UI i need to use the command flag as so:
-c "align - x"
But now it won't execute properly and I think I can see why. Is it because of the minus sign I use as a string variable and Maya doesn't understand this? What is the correct way of writing this?
I guess I could switch the plus and minus sign to just "pos" and "neg" but I rather would like to understand the problem and how to solve it.
Thanks!
