Script

 

2.45 kB

4.70 (4 votes)

 

174 Downloads

1953 Views

makeCenterPoints

This script creates a vertex at the center of selected polys and adds them to a Selection Set.

This Python Script is mostly written in the new Python API. Some good stuff for the curious to examine.

Big thanks to:
GwynneR, Matt Cox, Chris_Hague and others who helped me through my own stupidity and inexperience. Huge thanks to farfarer who provided the entire visitor callback.

How To Use:
Select some polys in a mesh
Type makeCenterPoints in MODO command line
Press enter
Enter Selection Set name in the dialog
Select a Calculation Type
Press OK


Calc Types
Centered: places the created point centered based on the vertices making up the selected poly. That may not be on the poly surface.

On Surface: places the created point on the poly's surface which may not be in the actual poly's center.

Install Instructions:
copy to lxserv directory in your scripts folder

 

Browse Files

Added: May 26, 2014
Categories: Modeling - Workflow
Tags: create verticesPython APISelection Settext prompt
Language: Python
Compatible With: -Not Tested-
 

Show and Tell

Images

 

Videos

 

Community Site Map

Community News Forums
Listen (podcast)
Learn (training videos) Authorized Training Centers
Share Assets
MODO Productivity