Are you sure your variables are correct? 

If I run this it works fine and has the same result as entering the values 
manually (as expected):

a1, a2, a3 = (18.146, 61.885, -0.592)
b1, b2, b3 = (20.579, 36.152, -1.014)
c1, c2, c3 = (20.079, 16.312, -5.432)

cmds.polyCreateFacet( point=[(a1, a2, a3), (b1, b2, b3), (c1, c2, c3)] )

On Monday, March 11, 2013 12:07:56 PM UTC-7, Amol Deshpande wrote:
> Hello,
> 
> I am new to python & facing a small problem.
> 
> I am trying to create a triangular polygon face based on world co-ordinates 
> of three joints in space.
> 
> 1) I got the relative positions of the three joints & converted them into 
> world co-ordinates.
> 2) I stored these in float variables as a1,a2,a3, b1,b2,b3, c1,c2,c3
> 3) I then passed these in the polyCreateFacet command as
> cmds.polyCreateFacet( point=[(a1,a2,a3),(b1,b2,b3), (c1,c2,c3)] 
> 
> But it just creates a polygon surface which is not visible or which is just a 
> point near the origin.
> 
> 4)However, When I pass the same values of the variables in the format :
> cmds.polyCreateFacet( point=[(18.146,61.885,-0.592), (20.579,36.152,-1.014), 
> (20.079,16.312,-5.432)] )
> I do get a polygon face as expected.
> 
> I don't know what I am doing wrong. I tried searching forums & looking at 
> maya doc for examples but in vain.
> 
> I did print out a1,a2,a3,b1,b2.. etc. to double check the values which are 
> floats.
> 
> Any help would be appreciated. 
> Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to