Hi,
It should read :
from pymel import *
a=[-1,1,0]
b=[-1,-1,0]
c=[1,1,0]
d=[1,-1,0]
print center(a,b,c,d)
or
from pymel import *
a=[-1,1,0]
b=[-1,-1,0]
c=[1,1,0]
d=[1,-1,0]
ctr = center(a,b,c,d)
print ctr
Does that work ?
*args indicates a variable number of arguments, so center(p, *args) takes at least one argument, and possibly as much as you want (all the points of the face), so :
print center() would complain
print center(a) would print a
print center(a, b) would print the center of a and b thus (a + b)/2
etc.
If you can't import Vector then you probably have a pymel installation
problem (wrong path in PYTHONPATH or the like).
Olivier
--
Olivier Renouard