Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Forums Maxon Cinema 4D “Make Pole” function: make a point in the middle of a poly(R17)

  • “Make Pole” function: make a point in the middle of a poly(R17)

     Sam Treadway updated 1 year, 2 months ago 3 Members · 13 Posts
  • Eric Chard

    October 26, 2019 at 8:01 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.”
    ++++++++++++++++

  • Brian Jones

    October 26, 2019 at 9:29 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.

  • Eric Chard

    October 27, 2019 at 12:54 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.”
    ++++++++++++++++

  • Brian Jones

    October 27, 2019 at 1:10 am

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

  • Sam Treadway

    October 27, 2019 at 7:55 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

  • Brian Jones

    October 27, 2019 at 2:38 pm

    Thanks Sam, that works in R21

  • Sam Treadway

    October 27, 2019 at 7:05 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

  • Eric Chard

    October 29, 2019 at 5:58 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.”
    ++++++++++++++++

  • Eric Chard

    October 29, 2019 at 6:01 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.”
    ++++++++++++++++

  • Sam Treadway

    October 29, 2019 at 6:42 am

    Well there you go now twisting my arm ????

    13850_polygontocenterpointv0.0.3.zip.zip

Viewing 1 - 10 of 13 posts

Log in to reply.

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy