Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    PointObject.CalcVertexMap(self, modifier)

    Cinema 4D SDK
    python r25
    3
    5
    849
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      Abetred
      last edited by

      Hi everyone. I have a question about CalcVertexMap.
      When and how is it used? I've used it on a spline (PointObject) and on a Plane (PoligonObject) but in each case the method returns only "None", no Array is generated.
      The modifier parameter requires a BaseObject, again I passed different types here but it doesn't change anything. Could anyone give me some tips?

      bacaB 1 Reply Last reply Reply Quote 0
      • bacaB
        baca @Abetred
        last edited by

        @abetred

        PointObject.CalcVertexMap(self, modifier)
        is applied to PointObject like Polygon or Spline, and as a parameter it takes Modifier Object with "Restriction" tag applied to it.

        So basically when you develop OBJECT_MODIFIER plugin, and "Restriction" tag is applied to your plugin - you would be able to support these restrictions.

        1 Reply Last reply Reply Quote 0
        • A
          Abetred
          last edited by Abetred

          Ok, thanks for the help.
          CalcVertexMap obtains an array of the product of the PointObject's vertexmap values ​​(in the range [0.0,1.0],(I think) "normalizing" the result), using a modifier (BaseObject) with a Restriction tag (from this discussion https://plugincafe .maxon.net/topic/1125/453_calcvertexmap ) which is passed the vertexmap tags.

          I finally understood. It is specifically used to restrict the action of a plug-in modifier to passed vertex maps. I thought CalcVertexMap used the modifier as the object that produces the vertex map, obviously it's not like that...

          1 Reply Last reply Reply Quote 0
          • M
            m_adam
            last edited by

            Hi @Abetred, just to let you now that baca is right here. If you are still in the design phase and not yet sure how to developer something feel free to ask us so we can guide you to achieve what you want to do.

            Cheers,
            Maxime.

            MAXON SDK Specialist

            Development Blog, MAXON Registered Developer

            A 1 Reply Last reply Reply Quote 0
            • A
              Abetred @m_adam
              last edited by

              @m_adam

              hi Maxime, thank you for your availability. Bacca's answer immediately cleared my mind on the subject, just as I was reading the other thread. I usually use the traditional method of calculating vertexmaps in the presence of obstacles. I thought CalcVertexMap did just that (the restriction tag is not mentioned in the SDK, so I couldn't figure out how to use it) but my curiosity is just didactic.

              Ciao
              Gianluca

              1 Reply Last reply Reply Quote 1
              • First post
                Last post