FORUMS: list search recent posts

# "Make Pole" function: make a point in the middle of a poly(R17)

VIEW ALL
 "Make Pole" function: make a point in the middle of a poly(R17) on Oct 26, 2019 at 8:01:20 pm

(R17) Is there a function that will generate a point in the center of a (convex) poly and triangulate the poly, in one operation?

Tnx.

++++++++++++++++
"Putting the HARM in 'harmonica' since 2005."
++++++++++++++++

 Re: "Make Pole" function: make a point in the middle of a poly(R17)on Oct 26, 2019 at 9:29:19 pm

you can use the Create Point tool on a poly. You'd have to eyeball center, it wouldn't be mathematical center and it only will do one poly at a time but that will work.

 Re: "Make Pole" function: make a point in the middle of a poly(R17)on Oct 27, 2019 at 12:54:32 am

Not practical for more than a dozen polys.

(FWIW, LW has this function. Rarely needed, but nice when you do need it.)

++++++++++++++++
"Putting the HARM in 'harmonica' since 2005."
++++++++++++++++

 Re: "Make Pole" function: make a point in the middle of a poly(R17)on Oct 27, 2019 at 1:10:45 am

yeah, I wondered if you meant a lot of polys, don't remember any plugins that did/do that...

 Re: "Make Pole" function: make a point in the middle of a poly(R17)on Oct 27, 2019 at 7:55:56 am

Here's a python script I wrote specifically for this...mostly out of curiosity. I don't know what's changed in the python sdk between R17 and R21 so this may not work. You're welcome to test it and let me know how it works out.

Run the script with one or multiple objects selected and with as many polygons as you wish per object - must be in polygon mode.
It will iterate through the selected objects and only apply the ops to individual polygons on the relevant selections.

You can also do this manually by:
1. selecting polygons
2. selecting the 'extrude inner' tool
3. setting the extrude inner options as follows (not absolutely necessary):
max angle: 180 (whatever)
offset: 0
subs: 1
preserve groups: off
variance: 0
create n-gons: off
4. After performing an inner extrude, then run the 'collapse' command (right click in viewport).

13843_polygontocenterpoint.zip.zip

 Re: "Make Pole" function: make a point in the middle of a poly(R17)on Oct 27, 2019 at 2:38:33 pm

Thanks Sam, that works in R21

 Re: "Make Pole" function: make a point in the middle of a poly(R17)on Oct 27, 2019 at 7:05:23 pmLast Edited By Sam Treadway on Oct 27, 2019 at 8:28:16 pm

Thanks,

Yeah, I have R21. I just haven't checked with R17 but it should work on any version R16+.

Here's a slightly improved version that handles undos better - you have to undo twice to completely reverse out of it.
13845_polygontocenterpointv0.0.2.zip

 Re: "Make Pole" function: make a point in the middle of a poly(R17)on Oct 29, 2019 at 5:58:28 am

Cool! Seems to work perfectly under R17! Thanks!

If I ever get around to scripting, I'll try to make it so the new center points are all selected on exit.

Many thanks: what a quick solution!

++++++++++++++++
"Putting the HARM in 'harmonica' since 2005."
++++++++++++++++

 Re: "Make Pole" function: make a point in the middle of a poly(R17)on Oct 29, 2019 at 6:01:33 am

Oh, if one remembers to make an all-points selection set BEFORE running the script, one can re-invoke that set and INVERT to Select the new center points.

++++++++++++++++
"Putting the HARM in 'harmonica' since 2005."
++++++++++++++++

 Re: "Make Pole" function: make a point in the middle of a poly(R17)on Oct 29, 2019 at 6:42:46 am

Well there you go now twisting my arm ðŸ˜‰

13850_polygontocenterpointv0.0.3.zip.zip

 Re: "Make Pole" function: make a point in the middle of a poly(R17)on Oct 29, 2019 at 6:50:00 am

minor cleanup:

13851_polygontocenterpointv0.0.3.zip.zip

 Re: "Make Pole" function: make a point in the middle of a poly(R17)on Oct 29, 2019 at 7:08:47 pm

You da man! Thanks for alleviating me of the necessity to learn to script in Yet Another Animation Package (YAAP).

++++++++++++++++
"Putting the HARM in 'harmonica' since 2005."
++++++++++++++++

 Re: "Make Pole" function: make a point in the middle of a poly(R17)on Oct 29, 2019 at 7:24:54 pm

No problem. I'm available for more advanced feats as they arise....technical or otherwise:
rigging, xPresso, tool scripts, automation scripts, modeling, FX and more...

;)