Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware 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

    Pointcount from bevel deformer

    Cinema 4D SDK
    python
    2
    5
    1.3k
    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.
    • B
      bonsak
      last edited by

      Hi
      I have a Bevel Defomrer on a simple polygon triangle. Beveling on of the points. Adding some points in the rounding operation compared to the initial polygon.
      How can i access the resulting points from the Bevel Deformer. Im trying this in a python tag on the deformer:

      def main():
          op.GetObject().GetPointCount()
      

      Resulting in this error:
      AttributeError: 'c4d.BaseObject' object has no attribute 'GetPointCount'
      And that is probably logical as its not a polygon object πŸ™‚
      So how can i access the resulting points the Bevel Deformer produces?

      Regards
      Bonsak

      1 Reply Last reply Reply Quote 0
      • eZioPanE
        eZioPan
        last edited by eZioPan

        Hi @bonsak,
        Try use op.GetObject().GetDeformCache().GetPointCount() in a Python Tag on the Polygon Object.
        Here you can get more information: GetDeformCache().

        1 Reply Last reply Reply Quote 2
        • B
          bonsak
          last edited by

          Cool! Thanks!

          -b

          1 Reply Last reply Reply Quote 0
          • eZioPanE
            eZioPan
            last edited by eZioPan

            btw, please read the How to Post Questions, Q&A New Functionality.
            I think it's better to move this question into Cinema 4D Development category πŸ˜‰

            1 Reply Last reply Reply Quote 0
            • B
              bonsak
              last edited by

              Sorry πŸ™‚

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