Hello,

I have create one script where i changing display mode to smooth mesh 
preview.

cmds.displaySmoothness(object, divisionsU=3, divisionsV=3, pointsWire=16, 
pointsShaded=4, polygonObject=3)

But some time maya give warning window "mesh contains a large number of 
facets..."
and maya stuck until that window is open.

so i am looking to avoid this warning.

> there is not flags of displaySmoothness or command that i can find 
to avoid it.

> i tried to find out face count of mesh and trying to know what 
is threshold (face count) when maya giving this warning.
   but with each object this count is totally change

ex:  i create polyPlane with 1 face. 
      cmds.polySmooth("polyPlane ", dv=7)
      print cmds.polyEvaluate("polyPlane ", f=True)
      result: 4096
      cmds.displaySmoothness("polyPlane ", divisionsU=3, divisionsV=3, 
pointsWire=16, pointsShaded=4, polygonObject=3)

     and

     one single model it hase more then 50,000 face and still smooth mesh 
preview works fine no warning.

Please can anyone know how can i avoid this ?

-- 
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 python_inside_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/2fff5fc2-1220-44df-9dc1-1ada6ba8540d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to