Select Poles ( MultiEdge )

0 votes
Version: 
1
Date Updated: 
10/09/2013
Author Name: 
Yegor Tsyba

This script will find all objects with Poles (places where more than 5 edges coming from one vertex) and select them (Objects and Poles too).

Additional Info: 

Instalation:
1) Download script.
2) Run it via menu “MaxScript – Run Script” or DragAndDrop it on 3dsmax viewport
3) Choose “Customize – Customize user interface” and add script to Keyboard shotcut or in Menus, Toolbars or, like on image, in to the quad. You will find it in Category: Shiva Tools.

Version Requirement: 
3ds Max 9+
Video URL: 

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
barigazy's picture

...

To speed up the process replace this part of your code

VxCount = polyOp.getNumVerts obj
for i = 1 to  VxCount do
(
    Edgs = polyOp.getEdgesUsingVert obj i as array
    if Edgs.count > 5 then append VxArray i
)

with this

VxCount = polyOp.getNumVerts obj
getVertEdges = polyOp.getEdgesUsingVert
for i = 1 to VxCount where (getVertEdges obj i).numberset > 5 do append VxArray i

U need to avoid usind polyOp struct methods inside for-lops
Also try to avoid to making some process when you are in modify panel
Don't get me wrong but your code is very slow and also inefficient in certain cases:
- You are making selection at base object level. But what if you have Edit_Poly modifier on top with some topology changes?
- What if you had some deformation modifier above base object?
Then you redirect deformation on edge selection.
- etc.
My next suggestion is to open new thread in forum section if you want to find out more about optimization.
BTW idea is good.
Cheers!

barigazy

luxxeon's picture

Very handy

Thanks. Very handy script. I use it to quickly quadrify spheres, as well as other issues.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.