Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk® Maya® / Python / Which module contains performPolyDeleteElements?
  RSS 2.0 ATOM  

Which module contains performPolyDeleteElements?
Rate this thread
 
62337
 
Permlink of this thread  
avatar
  • Total Posts: 2
  • Joined: 28 November 2011 10:13 AM

Which module contains the function performPolyDeleteElements? It doesn’t appear to be in the maya.cmds module. Also, could someone be kind enough to point me to the documentation for that function? The MEL and Python documentations included in Maya don’t seem to have any information regarding it.



Replies: 0
avatar
  • ldunham1
  • Posted: 28 November 2011 10:59 AM

its actually a script that comes with maya
(check your mayaInstallDir\scripts\others\performPolyDeleteElements.mel)

only way i found it accessible (didnt spend a great deal of time tbh) and i dont advise you do this as ‘eval’ is slow and most of the time needless, but it does works, is;

import maya.mel as mel
mel
.eval("performPolyDeleteElements")

it is dirty but i couldnt find another way. the performPolyDeleteElements.mel script itself is fairly simple, just uses filterExpand to get selection and using if’s applys DeleteVertex and/or DeleteEdge scripts, which again have the same issue.

Hope it helps though.



Lee Dunham | Character TD
ldunham.blogspot.com

Replies: 0